summaryrefslogtreecommitdiffstats
path: root/tests/backup/test_restore.sh
diff options
context:
space:
mode:
authorOmari Stephens <xsdg@android.com>2009-08-12 00:30:59 -0700
committerOmari Stephens <xsdg@android.com>2009-08-12 00:30:59 -0700
commit259447bc6490f4ec7e04eb5d8bfa1b041650ed53 (patch)
tree1be1725414d274ecfa251435ffab30ddf2b59c4b /tests/backup/test_restore.sh
parent064dbd076d431a7508b864aa0993cd59ef743e4e (diff)
downloadframeworks_base-259447bc6490f4ec7e04eb5d8bfa1b041650ed53.zip
frameworks_base-259447bc6490f4ec7e04eb5d8bfa1b041650ed53.tar.gz
frameworks_base-259447bc6490f4ec7e04eb5d8bfa1b041650ed53.tar.bz2
Wrap up the stress test into a single script
make test_restore.sh return a value signifying success or failure
Diffstat (limited to 'tests/backup/test_restore.sh')
-rwxr-xr-xtests/backup/test_restore.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/backup/test_restore.sh b/tests/backup/test_restore.sh
index 4506c16..46b46e4 100755
--- a/tests/backup/test_restore.sh
+++ b/tests/backup/test_restore.sh
@@ -18,7 +18,7 @@
#export DRY_RUN="echo"
source test_backup_common.sh
-BUGREPORT_DIR="$HOME/backup/bugreports"
+[ -z "$BUGREPORT_DIR" ] && BUGREPORT_DIR="$HOME/backup/bugreports"
function check_file
{
@@ -107,3 +107,5 @@ echo
echo "Last 3 timestamps in 3.txt:"
a shell cat /data/data/com.android.backuptest/files/3.txt | tail -n 3
+exit $need_bug
+