mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
tests: remove unneeded indirection
the additional function calls obscured the actual logic Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
parent
20445dfeaf
commit
27a02bc7d1
3 changed files with 4 additions and 12 deletions
|
@ -23,9 +23,9 @@ fi
|
|||
|
||||
run_test () {
|
||||
if [ -n "$init" ]; then
|
||||
(init_test 2>/dev/null > /dev/null)
|
||||
(run "$init" 2>/dev/null > /dev/null)
|
||||
fi
|
||||
log="$(run_test_proper 2>&1)" && status=0 || status=$?
|
||||
log="$(run "$test" 2>&1)" && status=0 || status=$?
|
||||
}
|
||||
|
||||
run_test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue