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:
Jan Pokorný 2016-10-07 20:50:42 +02:00
parent 485885597c
commit 8cc165a87b
No known key found for this signature in database
GPG Key ID: 61BBB23A9E8F8DE2

View File

@ -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