mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-01 22:33:30 +00:00
zdtm: don't run file_locks* tests simultaneously
/proc/locks can contains the same locks twice, if someone releases a lock when we are reading this file. Signed-off-by: Andrew Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
0ee52669ac
commit
459fb8b7da
1 changed files with 5 additions and 1 deletions
|
|
@ -1174,7 +1174,11 @@ if [ $SPECIFIED_NAME_USED -eq 1 ]; then
|
|||
exit 1
|
||||
fi
|
||||
$CRIU check -v0 --feature "mnt_id" || export ZDTM_NOSUBNS=1
|
||||
run_test $1 || case_error $1
|
||||
# don't run file_locks* tests simultaneously
|
||||
(
|
||||
expr $1 : ".*file_locks" > /dev/null && flock 10
|
||||
run_test $1 10<&-
|
||||
) 10<zdtm.sh || case_error $1
|
||||
else
|
||||
if [ $# -eq 0 ]; then
|
||||
pattern='.*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue