mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
test: disable echo earlier
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
# utility functions for shell tests
|
||||
|
||||
assert_true() {(
|
||||
local rc
|
||||
|
||||
set +ex
|
||||
|
||||
local rc
|
||||
|
||||
"$@"
|
||||
rc=$?
|
||||
if [[ $rc -ne 0 ]]; then
|
||||
@@ -47,10 +47,10 @@ assert_not_in() {(
|
||||
)}
|
||||
|
||||
assert_rc() {(
|
||||
local rc exp="${1?}"
|
||||
|
||||
set +ex
|
||||
|
||||
local rc exp="${1?}"
|
||||
|
||||
shift
|
||||
"$@"
|
||||
rc=$?
|
||||
|
||||
Reference in New Issue
Block a user