summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/pstack_testrunner
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /storage/src/tests/pstack_testrunner
Publish
Diffstat (limited to 'storage/src/tests/pstack_testrunner')
-rwxr-xr-xstorage/src/tests/pstack_testrunner14
1 files changed, 14 insertions, 0 deletions
diff --git a/storage/src/tests/pstack_testrunner b/storage/src/tests/pstack_testrunner
new file mode 100755
index 00000000000..320d47f7e35
--- /dev/null
+++ b/storage/src/tests/pstack_testrunner
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+my @pids = `ps auxww | grep "./testrunner" | grep -v grep`;
+foreach (@pids) {
+ s/^\S+\s+(\d+)\s+.*$/$1/;
+ chomp;
+}
+
+foreach my $pid (@pids) {
+ my $cmd = "pstack $pid";
+ system($cmd) == 0 or die "Failed to run '$cmd'";
+}