]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/270: wait for fsstress processes to be killed
authorLukas Czerner <lczerner@redhat.com>
Mon, 15 Jun 2020 10:52:36 +0000 (12:52 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 21 Jun 2020 16:39:18 +0000 (00:39 +0800)
commitaae8fbecf42b99581984f2d4ad7830e9e2f3f6d0
tree7aab353cfa94532a630f966f237edc1348f11e97
parent497a269f48c83313d6d59cb42203789005fb5a60
generic/270: wait for fsstress processes to be killed

Currently wait will do nothing, because $pid is empty due to the fact
that the command was ran on the background in a separate shell so we
never got the $! set.

This is causing unexpected test failures especially under low memory
due to the fact that the fsstress is still running when we are
checking and comparing quota usage.

Fix it by using -w argument for killall that will wait for all processes
to actually die before it exits.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/270