diff --git a/tools/run-tests b/tools/run-tests index 14e1bfd3..2b3b1f2e 100755 --- a/tools/run-tests +++ b/tools/run-tests @@ -863,7 +863,7 @@ def post_test(ctx, to_copy): for f in to_copy: if os.path.isdir('/tmp/' + f): shutil.rmtree('/tmp/' + f) - else: + elif os.path.exists('/tmp/' + f): os.remove('/tmp/' + f) Process(['ip', 'link', 'set', 'lo', 'down']).wait()