[Fuego] [PATCH] run-test: mkdir recursively

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Mon Jun 4 07:44:50 UTC 2018


If we add a test in jenkins but use the command line to run
the test first, then the folder builds will not be there.
Use mkdir -p until we switch to python3.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/scripts/ftc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/engine/scripts/ftc b/engine/scripts/ftc
index 12bedb3..2cf7c9f 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -3393,7 +3393,8 @@ def do_run_test(conf, options):
     if not os.path.isdir(run_dir):
         if fuego_caller == "jenkins":
             error_out("Jenkins did not create run folder " + run_dir)
-        os.mkdir(run_dir)
+        # FIXTHIS: use a more pythonic way
+        os.system("mkdir -p " + run_dir)
 
     # prepare a per-run spec.json file
     specpath = '%s/engine/tests/%s/spec.json' % (conf.FUEGO_CORE, test_name)
-- 
2.7.4




More information about the Fuego mailing list