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:
Ciro Santilli
2018-08-13 21:08:27 +01:00
parent a8bc1f4cce
commit 626f5f9e22
9 changed files with 79 additions and 54 deletions

8
eeval
View File

@@ -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"