autotest: fix MAVFTP test

This commit is contained in:
Peter Barker 2022-02-25 20:33:10 +11:00 committed by Peter Barker
parent 10e69373b3
commit e6c1bc2402
1 changed files with 1 additions and 1 deletions

View File

@ -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