]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Add log dir name parameter to test script
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 27 Feb 2019 07:01:09 +0000 (08:01 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Mon, 4 Mar 2019 16:25:15 +0000 (17:25 +0100)
test.sh

diff --git a/test.sh b/test.sh
index 21d82ae81569a2fb6b065dd81a1a4b9aec98b982..286859fa3661ef26577358bb4a514f876ba69846 100644 (file)
--- a/test.sh
+++ b/test.sh
@@ -1,7 +1,11 @@
 #!/bin/bash
 NOFCE=19        # number of computational experiments
 SC="lpar"       # scenario to test (without `.json`)
-LOGDIR="log"    # directory where to store results
+if [ -z $* ]; then
+        LOGDIR="log"    # directory where to store results
+else
+        LOGDIR="log_$1"
+fi
 
 for p in `ls bin/`;
 do