]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: avoid nspawn failure due to scope in use in TEST-06-SELINUX
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 May 2026 22:41:10 +0000 (23:41 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 5 May 2026 08:45:04 +0000 (10:45 +0200)
commitae973bb61767fce6b428f52b20cfcddf2c70c944
treeb33f4e4cc01019ab5bf65c77804e60d83239ccb1
parenta551c1bd56ef2756eb0604c8f2a7d1a1b63c9c77
test: avoid nspawn failure due to scope in use in TEST-06-SELINUX

TEST-06-SELINUX occasionally fails because repeated nspawn invocations use
the same machine name and scope:

TEST-06-SELINUX.sh[598]: Failed to allocate scope: Unit H.scope was already loaded or has a fragment file.

Use a different machine name/scope for each invocation in the test
case to avoid hitting this issue
test/units/TEST-06-SELINUX.sh