Przeglądaj źródła

ktestsctl: create working dir at start of execution

Daniel-Constantin Mierla 7 lat temu
rodzic
commit
6d48fb996e
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      ktestsctl

+ 5 - 0
ktestsctl

@@ -150,6 +150,11 @@ set -- "${CMDPARAMS[@]}" # restore positional parameters
 ### main command switch
 #
 echo
+if [ -n "${KAMRUN}" ] ; then
+	mkdir -p ${KAMRUN}
+	chmod a+w ${KAMRUN}
+fi
+
 case $1 in
 	run)
 		if [ $# -lt 2 ] ; then