]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: don't complain when /tmp/topotests exists
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 3 Mar 2021 11:22:15 +0000 (14:22 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 3 Mar 2021 11:22:15 +0000 (14:22 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
tests/topotests/lib/topogen.py

index f958cc11d39d39331b73b3d1cfe1c66c06b704bc..553f2bc6cf03758c45e8a9c021bf6e831ab31ebc 100644 (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)