From e6c1bc2402a161b072b07dc30892c9166955f9ec Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 25 Feb 2022 20:33:10 +1100 Subject: [PATCH] autotest: fix MAVFTP test --- Tools/autotest/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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