Skip to content

Commit 1b78a7c

Browse files
committed
Fix test_probes_systemdunit* running in parallel
1 parent ad669c4 commit 1b78a7c

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/probes/systemdunitdependency/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ if(ENABLE_PROBES_LINUX)
33
add_oscap_test("test_probes_systemdunitdependency.sh")
44
add_oscap_test("test_probes_systemdunitdependency_validation.sh")
55
add_oscap_test("test_probes_systemdunitdependency_offline_mode.sh")
6+
set_tests_properties(
7+
"probes/systemdunitdependency/test_probes_systemdunitdependency.sh"
8+
"probes/systemdunitdependency/test_probes_systemdunitdependency_validation.sh"
9+
"probes/systemdunitdependency/test_probes_systemdunitdependency_offline_mode.sh"
10+
PROPERTIES RESOURCE_LOCK "systemd:1"
11+
)
612
endif()
713
endif()

tests/probes/systemdunitproperty/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ if(ENABLE_PROBES_LINUX)
33
add_oscap_test("test_probes_systemdunitproperty.sh")
44
add_oscap_test("test_probes_systemdunitproperty_mount_wants.sh")
55
add_oscap_test("test_probes_systemdunitproperty_offline_mode.sh")
6+
set_tests_properties(
7+
"probes/systemdunitproperty/test_probes_systemdunitproperty.sh"
8+
"probes/systemdunitproperty/test_probes_systemdunitproperty_mount_wants.sh"
9+
"probes/systemdunitproperty/test_probes_systemdunitproperty_offline_mode.sh"
10+
PROPERTIES RESOURCE_LOCK "systemd:1"
11+
)
612
endif()
713
endif()

0 commit comments

Comments
 (0)