jwack: _cheatfds error when run from toplevel make -j.

Also added a new unit test to confirm that 'make' behaviour works as
expected, with and without parallelism.
This commit is contained in:
Avery Pennarun 2018-12-04 00:07:23 -05:00
commit df44dc54a2
11 changed files with 68 additions and 3 deletions

View file

@ -54,12 +54,13 @@ if [ -z "$DO_BUILT" ]; then
export _do_opt_verbose=
export _do_opt_clean=
fi
while getopts 'dxvch?' _opt; do
while getopts 'dxvcj:h?' _opt; do
case $_opt in
d) _do_opt_debug=1 ;;
x) _do_opt_exec=x ;;
v) _do_opt_verbose=v ;;
c) _do_opt_clean=1 ;;
j) ;; # silently ignore, for compat with real redo
\?|h|*) printf "%s" "$USAGE" >&2
exit 99
;;