fix(bug): fix oe_test_systemd_SCEN_06.sh

This commit is contained in:
2026-04-21 15:34:37 +08:00
parent 21163ee115
commit b0b2581051

View File

@@ -51,8 +51,8 @@ function run_test() {
systemctl restart TestB systemctl restart TestB
CHECK_RESULT $? 0 0 "TestB.service restart success" CHECK_RESULT $? 0 0 "TestB.service restart success"
sleep 2 sleep 2
systemctl status TestB LOG_INFO "Check TestB.service status after restart with invalid ExecStart"
CHECK_RESULT $? 0 0 "Failed to get TestB.service status" systemctl status TestB || true
systemctl is-failed TestB systemctl is-failed TestB
CHECK_RESULT $? 0 0 "TestB.service is not in failed state" CHECK_RESULT $? 0 0 "TestB.service is not in failed state"
systemctl status TestA | grep running systemctl status TestA | grep running