Move dir only if exists to avoid error message.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 17:06:14 +0000 (17:06 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 17:06:14 +0000 (17:06 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2868 38d2e660-2303-0410-9eaa-f027e97ec537

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