Move dir only if exists to avoid error message.
[bertos.git] / test / run_tests.sh
index f7eb64659fab15f5664d435eb618e59037171018..fde41fc190d474357c29592a1e1c7932b7032d2c 100755 (executable)
@@ -39,7 +39,9 @@ runout='/dev/null'
 set -o pipefail
 
 rm -rf "${TESTOUT}.old"
-mv -f "${TESTOUT}" "$TESTOUT.old"
+if [ -d "${TESTOUT}" ] ; then
+       mv -f "${TESTOUT}" "$TESTOUT.old"
+fi
 mkdir -p "$TESTOUT"
 
 for src in $TESTS; do