summaryrefslogtreecommitdiffstats
path: root/run_test_suite
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2013-02-14 11:34:49 +0100
committerTails developers <amnesia@boum.org>2013-02-14 19:27:25 +0100
commitf505f0169c997ded8f5ae1b0060fd0f14640a935 (patch)
treeeb3b90e58d55b66febf797151508edfbacc08b45 /run_test_suite
parent0f1f8d36c98d0824230f6dd8a6d9d53d532d03e0 (diff)
Workaround libvirt core_dump() permission issue.
Diffstat (limited to 'run_test_suite')
-rwxr-xr-xrun_test_suite14
1 files changed, 14 insertions, 0 deletions
diff --git a/run_test_suite b/run_test_suite
index 1be056d..61808d3 100755
--- a/run_test_suite
+++ b/run_test_suite
@@ -115,6 +115,20 @@ if [ -n "${VNC_VIEWER}" ]; then
start_vnc_viewer
fi
+# Workaround: when dumping the guest's memory via core_dump(), libvirt
+# will create files that only root can read. We therefore pre-create
+# them with more permissible permissions, which libvirt will preserve
+# (although it will change ownership). so that the user running the
+# script can grep the dumps for the fillram pattern.
+for file in features/tmpfs/after_wipe.dump features/tmpfs/before_wipe.dump; do
+ if [ ! -e "${file}" ]; then
+ touch "${file}"
+ fi
+ if [ -O "${file}" ]; then
+ chmod a+r "${file}"
+ fi
+done
+
export SIKULI_HOME="/usr/share/java"
export DISPLAY=${TARGET_DISPLAY}
export ISO="${ISO}"