]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-74-AUX-UTILS: Use tee
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 3 Jan 2025 15:33:29 +0000 (16:33 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 3 Jan 2025 18:32:48 +0000 (19:32 +0100)
Something is failing but we can't see what from the logs so let's use
tee so we can.

test/units/TEST-74-AUX-UTILS.machine-id-setup.sh

index c2b9db5178230fa5fbc62f23c36c90185ff04c49..bcd2f3157134d13042103d9e8a2b2240ad54176f 100755 (executable)
@@ -71,7 +71,7 @@ testcase_transient() {
 
 # Check if we correctly processed the invalid machine ID we set up in the respective
 # test.sh file
-systemctl --state=failed --no-legend --no-pager >/failed
+systemctl --state=failed --no-legend --no-pager | tee /failed
 test ! -s /failed
 
 run_testcases