From 79e93ca79ce6df93f93e3b9f218fd4d37d70818c Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Wed, 24 Feb 2016 21:40:00 +0300 Subject: [PATCH] zdtm: use a separate file for flock In Ubuntu flock opens a file with O_RDWR and then it can't be executed flock: ./zdtm_mount_cgroups: Text file busy Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index 6165e1412..1ace91953 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -432,7 +432,7 @@ class zdtm_test: subprocess.check_call(["make", "zdtm_ct"]) if not os.access("zdtm/lib/libzdtmtst.a", os.F_OK): subprocess.check_call(["make", "-C", "zdtm/"]) - subprocess.check_call(["flock", "zdtm_mount_cgroups", "./zdtm_mount_cgroups"]) + subprocess.check_call(["flock", "zdtm_mount_cgroups.lock", "./zdtm_mount_cgroups"]) class inhfd_test: