From cac0ed050ee4b0935e67202177e66441651e136a Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 3 Mar 2021 14:22:15 +0300 Subject: [PATCH] tests: don't complain when /tmp/topotests exists Signed-off-by: Igor Ryzhov --- tests/topotests/lib/topogen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index f958cc11d3..553f2bc6cf 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -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) -- 2.39.5