summaryrefslogtreecommitdiffstats
path: root/run_test_suite
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-03-12 14:02:38 +0100
committerTails developers <amnesia@boum.org>2013-03-12 14:02:38 +0100
commit54bf78b9cd875948295eb4261e2097d4c6eca8b1 (patch)
tree4ec804fcb4e8818e27d4091b3d370e07d632f419 /run_test_suite
parent93ecaadfcbe402df02354e86d15dcb997dc7f9b2 (diff)
Add --keep-snapshots debugging option.
Diffstat (limited to 'run_test_suite')
-rwxr-xr-xrun_test_suite7
1 files changed, 6 insertions, 1 deletions
diff --git a/run_test_suite b/run_test_suite
index 8946d6e..197f454 100755
--- a/run_test_suite
+++ b/run_test_suite
@@ -14,6 +14,8 @@ from the Tails source directory.
Options:
--capture=FILE Captures the test session into FILE using VP8 encoding.
Requires ffmpeg and libvpx0.
+ --keep-snapshots Don't ever delete the background snapshots. This can a big
+ time saver when debugging new features.
--temp-dir Directory where various temporary files are written
during a test, e.g. VM snapshots and memory dumps,
failure screenshots, pcap files and disk images
@@ -89,7 +91,7 @@ capture_session() {
unset CAPTURE_FILE VNC_VIEWER VNC_SERVER
SHORTOPTS="a:c"
-LONGOPTS="view,vnc-server-only,capture:,help,temp-dir:,newest-iso"
+LONGOPTS="view,vnc-server-only,capture:,help,temp-dir:,newest-iso:,keep-snapshots"
OPTS=$(getopt -o $SHORTOPTS --longoptions $LONGOPTS -n "${NAME}" -- "$@")
eval set -- "$OPTS"
while [ $# -gt 0 ]; do
@@ -106,6 +108,9 @@ while [ $# -gt 0 ]; do
shift
CAPTURE_FILE="$1"
;;
+ --keep-snapshots)
+ export KEEP_SNAPSHOTS="yes"
+ ;;
--temp-dir)
shift
export TEMP_DIR="$(readlink -f $1)"