aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/pstack_testrunner
blob: ccd8c8ca6139999f6d59094a6e89925eff948f30 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

ps auxww | grep "./testrunner" | grep -v grep | while read username pid restofline; do
	if pstack $pid; then :; else
		echo "Failed to run 'pstack $pid'"
		exit 1
	fi
done