Use path based SHELL in Makefiles. It was suggested that this is a better solution for make for cases when there is no /usr/bin/env. See: https://github.com/purpleidea/mgmt/pull/694#discussion_r1015596204
24 lines
415 B
Bash
Executable File
24 lines
415 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
|
|
exit 0 # XXX: disable for now
|
|
|
|
. "$(dirname "$0")/../util.sh"
|
|
|
|
set -x
|
|
|
|
# run till completion
|
|
$TIMEOUT "$MGMT" run --converged-timeout=5 --no-watch --tmp-prefix yaml file-mode.yaml &
|
|
pid=$!
|
|
wait $pid # get exit status
|
|
e=$?
|
|
|
|
ls -l /tmp/mgmt
|
|
|
|
test -e /tmp/mgmt/f1
|
|
test -e /tmp/mgmt/f2
|
|
test -e /tmp/mgmt/f3
|
|
test $($STAT -c%a /tmp/mgmt/f2) = 741
|
|
test $($STAT -c%a /tmp/mgmt/f3) = 614
|
|
|
|
exit $e
|