[PATCH] Report kernel failures during kickstart tests.
Chris Lumens
clumens at redhat.com
Thu Nov 12 14:56:00 UTC 2015
Most of this is already there - all I need to do is the final reporting
part.
---
tests/kickstart_tests/scripts/run_one_ks.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/kickstart_tests/scripts/run_one_ks.sh b/tests/kickstart_tests/scripts/run_one_ks.sh
index 7def0ab..a6278e6 100755
--- a/tests/kickstart_tests/scripts/run_one_ks.sh
+++ b/tests/kickstart_tests/scripts/run_one_ks.sh
@@ -27,6 +27,7 @@
# 0 - Everything worked
# 1 - Test failed for unspecified reasons
# 2 - Test failed due to time out
+# 3 - Test failed due to kernel panic
# 77 - Something needed by the test doesn't exist, so skip
IMAGE=
@@ -118,6 +119,11 @@ runone() {
cleanup ${tmpdir}
cleanup_tmp ${tmpdir}
return 2
+ elif [[ "$(grep 'Call Trace' ${tmpdir}/livemedia.log)" != "" ]]; then
+ echo RESULT:${name}:FAILED:Kernel panic.
+ cleanup ${tmpdir}
+ cleanup_tmp ${tmpdir}
+ return 3
fi
result=$(validate ${tmpdir})
--
2.4.3
More information about the anaconda-patches
mailing list