]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Loosen match against pstree output in simple test
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Jul 2018 05:24:05 +0000 (15:24 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 18 Jul 2018 12:53:39 +0000 (14:53 +0200)
As per previous commit, pstree can truncate output if it gets too
wide.  Instead of matching against the script's full path and
arguments, just match against the script name.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13531

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Jul 18 14:53:39 CEST 2018 on sn-devel-144

ctdb/tests/simple/90_debug_hung_script.sh

index b605dc02fd4595e96ecb5707a9a83121f8acb5d5..846188fc7160bef63e8b2749be4f80c0b5edce94 100755 (executable)
@@ -73,7 +73,7 @@ done <<EOF
 ===== Start of hung script debug for PID=".*", event="monitor" =====
 ===== End of hung script debug for PID=".*", event="monitor" =====
 pstree -p -a .*:
-00\\\\.test\\\\.script,.* ${ctdb_base}/events/legacy/00\\\\.test\\\\.script monitor
+00\\\\.test\\\\.script,.*
  *\`-sleep,.*
 ---- Stack trace of interesting process [0-9]*\\\\[sleep\\\\] ----
 [<[0-9a-f]*>] .*sleep+.*