]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: limit environments for systemd-hwdb-update under ASan 11393/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 12 Jan 2019 09:48:13 +0000 (10:48 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 12 Jan 2019 10:44:39 +0000 (11:44 +0100)
test/test-functions

index d9ecc656611c9373c711eea37fa145667943bb1d..498dc82b18ab711a4c4a0958d7972ae864d962d6 100644 (file)
@@ -360,8 +360,9 @@ printf "[Service]\nEnvironment=ASAN_OPTIONS=\$DEFAULT_ASAN_OPTIONS:log_path=/sys
 
 # 90s isn't enough for some services to finish when literally everything is run
 # under ASan+UBSan in containers, which, in turn, are run in VMs.
+# Let's limit which environments such services should be executed in.
 mkdir -p /etc/systemd/system/systemd-hwdb-update.service.d
-printf "[Service]\nTimeoutSec=180s\n" >/etc/systemd/system/systemd-hwdb-update.service.d/timeout.conf
+printf "[Unit]\nConditionVirtualization=container\n\n[Service]\nTimeoutSec=180s\n" >/etc/systemd/system/systemd-hwdb-update.service.d/env-override.conf
 
 export ASAN_OPTIONS=\$DEFAULT_ASAN_OPTIONS:log_path=/systemd.asan.log UBSAN_OPTIONS=\$DEFAULT_UBSAN_OPTIONS
 exec  $ROOTLIBDIR/systemd "\$@"