diff mbox series

[ndctl,5/5] cxl/test: More backtrace detection

Message ID 167097754909.1189953.2852545346689990149.stgit@dwillia2-xfh.jf.intel.com
State Accepted
Commit 9b80f0debff828364b15b23f7e96e7283533950e
Headers show
Series cxl/test: Reliability fixes | expand

Commit Message

Dan Williams Dec. 14, 2022, 12:25 a.m. UTC
Make sure that backtraces are attributed to the expected test, and add more
backtrace detection to other tests.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 test/common               |    1 +
 test/cxl-create-region.sh |    2 ++
 test/cxl-labels.sh        |    2 ++
 3 files changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/test/common b/test/common
index 44cc352f6009..248ca3eaa485 100644
--- a/test/common
+++ b/test/common
@@ -138,6 +138,7 @@  json2var()
 check_dmesg()
 {
 	# validate no WARN or lockdep report during the run
+	sleep 1
 	log=$(journalctl -r -k --since "-$((SECONDS+1))s")
 	grep -q "Call Trace" <<< $log && err $1
 	true
diff --git a/test/cxl-create-region.sh b/test/cxl-create-region.sh
index 02161661b28f..658b9b8ff58a 100644
--- a/test/cxl-create-region.sh
+++ b/test/cxl-create-region.sh
@@ -149,4 +149,6 @@  for mem in ${mems[@]}; do
 	create_subregions "$mem"
 done
 
+check_dmesg "$LINENO"
+
 modprobe -r cxl_test
diff --git a/test/cxl-labels.sh b/test/cxl-labels.sh
index b38ca2f4693f..36b0341c8039 100644
--- a/test/cxl-labels.sh
+++ b/test/cxl-labels.sh
@@ -66,4 +66,6 @@  for nmem in ${nmems[@]}; do
 	test_label_ops "$nmem"
 done
 
+check_dmesg "$LINENO"
+
 modprobe -r cxl_test