fix devpi gateway auth
This commit is contained in:
@@ -24,13 +24,15 @@ assert() {
|
||||
|
||||
assert 'setup.sh parses as valid bash' bash -n "$root/scripts/setup.sh"
|
||||
|
||||
help_out="$(bash "$root/scripts/setup.sh" --help 2>&1)"
|
||||
help_file="$(mktemp)"
|
||||
bash "$root/scripts/setup.sh" --help >"$help_file" 2>&1
|
||||
assert '--help prints the Usage header' \
|
||||
bash -c "printf '%s' \"$help_out\" | grep -q '^Usage: just setup'"
|
||||
grep -q '^Usage: just setup' "$help_file"
|
||||
assert '--help documents --headless' \
|
||||
bash -c "printf '%s' \"$help_out\" | grep -q -- '--headless'"
|
||||
grep -q -- '--headless' "$help_file"
|
||||
assert '--help documents FORGE_SETUP_YES' \
|
||||
bash -c "printf '%s' \"$help_out\" | grep -q 'FORGE_SETUP_YES'"
|
||||
grep -q 'FORGE_SETUP_YES' "$help_file"
|
||||
rm -f "$help_file"
|
||||
|
||||
set +e
|
||||
bash "$root/scripts/setup.sh" --not-a-flag >/dev/null 2>"$here/.bad.err"
|
||||
|
||||
Reference in New Issue
Block a user