mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
bench-boot: add -f option to only run fast boots
Comment out all tests that are known to be failing. run: exit 1 on failure, was broken dude to termout pipe
This commit is contained in:
8
eeval
8
eeval
@@ -18,5 +18,9 @@ cmd="$1"
|
||||
outfile="${2:-/dev/null}"
|
||||
mkdir -p "$(dirname "$outfile")"
|
||||
echo "$cmd" | tee $a "$outfile"
|
||||
eval "$cmd"
|
||||
exit "$?"
|
||||
# PIPESTATUS so that cmd="main_cmd | post_process" will return the status of cmd.
|
||||
# Not POSIX.
|
||||
# https://unix.stackexchange.com/questions/14270/get-exit-status-of-process-thats-piped-to-another
|
||||
# https://stackoverflow.com/questions/1221833/pipe-output-and-capture-exit-status-in-bash
|
||||
eval "${cmd}; cmd_exit=\${PIPESTATUS[0]}"
|
||||
exit "$cmd_exit"
|
||||
|
||||
Reference in New Issue
Block a user