mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-17 07:45:49 +00:00
tests: resources: check for proper names of leftover processes
Unfortunately, the change in test names introduced with commit e990681
hadn't been reflected (until now).
Also reformat shell syntax per more usual convention.
This commit is contained in:
parent
485885597c
commit
8cc165a87b
@ -1,20 +1,17 @@
|
||||
#!/bin/sh
|
||||
RETURN=0
|
||||
|
||||
for d in /dev/shm /var/run
|
||||
do
|
||||
for d in /dev/shm /var/run; do
|
||||
ls $d/qb-test* 2>/dev/null
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
if [ $? -eq 0 ]; then
|
||||
echo
|
||||
echo "Error: shared memory segments not closed/unlinked"
|
||||
echo
|
||||
RETURN=1
|
||||
fi
|
||||
done
|
||||
ps aux | grep -v grep | grep lt-check
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
ps aux | grep -v grep | grep -E 'lt-.*\.test'
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "test program frozen"
|
||||
RETURN=1
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user