diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index 55d4b942fb..8dedff1f95 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -11443,7 +11443,7 @@ switch value''' mavproxy.expect(["Loaded module ftp", "module ftp already loaded"]) mavproxy.send("ftp list\n") some_directory = None - for entry in sorted(os.listdir()): + for entry in sorted(os.listdir(".")): if os.path.isdir(entry): some_directory = entry break