summaryrefslogtreecommitdiffstats
path: root/tests/backup/test_restore.sh
diff options
context:
space:
mode:
authorOmari Stephens <xsdg@android.com>2009-08-06 15:36:34 -0700
committerOmari Stephens <xsdg@android.com>2009-08-06 15:36:34 -0700
commit864ed1a9d7f7a18db7415322728f6208a0eaf9d5 (patch)
tree1ad3b2babd34f33d9a6de6e395e7ae44f021e65f /tests/backup/test_restore.sh
parentead2758ce2103ab7b7c95c6aff91b239bb566099 (diff)
downloadframeworks_base-864ed1a9d7f7a18db7415322728f6208a0eaf9d5.zip
frameworks_base-864ed1a9d7f7a18db7415322728f6208a0eaf9d5.tar.gz
frameworks_base-864ed1a9d7f7a18db7415322728f6208a0eaf9d5.tar.bz2
Wipe data on backend before a backup run
Append the date to 3.txt so that we can see if/when backup failures occurred solely from the device/server state Note that these files will probably be deleted from the tree immediately, to be replaced by the ruby versions.
Diffstat (limited to 'tests/backup/test_restore.sh')
-rwxr-xr-xtests/backup/test_restore.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/backup/test_restore.sh b/tests/backup/test_restore.sh
index 8de70cb..44b3a28 100755
--- a/tests/backup/test_restore.sh
+++ b/tests/backup/test_restore.sh
@@ -70,7 +70,7 @@ echo
# check the results
check_file files/file.txt "first file"
check_file files/another_file.txt "asdf"
-check_file files/3.txt "3"
+#check_file files/3.txt "3"
check_file files/empty.txt ""
check_file shared_prefs/raw.xml '<map><int name="pref" value="1" /></map>'
@@ -84,3 +84,6 @@ adb $ADB_OPTS shell "ls -l /data/data/com.android.backuptest/shared_prefs"
echo ---
echo
+echo "Last 3 timestamps in 3.txt:"
+adb $ADB_OPTS shell cat /data/data/com.android.backuptest/files/3.txt | tail -n 3
+