Merge pull request #8189 from idryzhov/topotest-mkdir

tests: don't complain when /tmp/topotests exists
This commit is contained in:
Rafael Zalamena 2021-03-03 19:30:11 +00:00 committed by GitHub
commit fecbc5d2e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1006,7 +1006,7 @@ def diagnose_env_linux():
if not os.path.isdir("/tmp"):
logger.warning("could not find /tmp for logs")
else:
os.system("mkdir /tmp/topotests")
os.system("mkdir -p /tmp/topotests")
# Log diagnostics to file so it can be examined later.
fhandler = logging.FileHandler(filename="/tmp/topotests/diagnostics.txt")
fhandler.setLevel(logging.DEBUG)