Skip to contentSkip to conversation

stable-2.02 - tests: aux collects stack trace when stuck is assumed

PATCH Zdenek Kabelac 1 participant 1 message Oct 16, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c563af047643b18b6ebc369a77ecf094dd2a5f11
Commit:        c563af047643b18b6ebc369a77ecf094dd2a5f11
Parent:        57585ebacd54d7d0f4e80cf11e062e652d019539
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Sep 10 17:05:02 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Oct 16 17:07:58 2020 +0200

tests: aux collects stack trace when stuck is assumed

Automatically collect traces in this case.

---
 test/lib/aux.sh | 1 +
 1 file changed, 1 insertion(+)
test/lib/aux.sh +1 -0
index 3c39151ae..b5f81dc74 100644
@@ -1517,6 +1517,7 @@ wait_for_sync() {
 	done
 
 	echo "Sync is taking too long - assume stuck"
+	echo t >/proc/sysrq-trigger 2>/dev/null
 	return 1
 }