aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-12-16 18:02:05 -0600
committerRob Landley <rob@landley.net>2007-12-16 18:02:05 -0600
commit03a94509e47d9e194324f50f0feba81f2d4328ae (patch)
treeb3505ddf9ba5fc70200831fe455f97d5c3083c21
parent273f278fa83715c251e8422489279f91566b856b (diff)
downloadtoybox-03a94509e47d9e194324f50f0feba81f2d4328ae.tar.gz
Delete testdir after use.
-rwxr-xr-xtest.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/test.sh b/test.sh
index 47a50b1e..818e8ad0 100755
--- a/test.sh
+++ b/test.sh
@@ -1,17 +1,16 @@
#!/bin/bash
[ -z "$TOPDIR" ] && TOPDIR="$(pwd)"
-[ -z "$TESTDIR" ] && TESTDIR="testdir"
-rm -rf "$TESTDIR"
-mkdir -p "$TESTDIR"
+rm -rf testdir
+mkdir -p testdir
if [ -z "$OLD" ]
then
- make install_flat PREFIX="$TESTDIR"
+ make install_flat PREFIX=testdir
fi
-cd "$TESTDIR"
+cd testdir
PATH=.:$PATH
. "$TOPDIR"/scripts/test/testing.sh
@@ -30,4 +29,5 @@ else
done
fi
-rm -rf "$TESTDIR"
+cd ..
+rm -rf testdir