Completes the last phase-6 item of issue #2: the defaults check now explicitly asserts max_high_jobs is absent from the output, not just that the old assertion is gone.
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -50,7 +50,9 @@ contains "clean --all removes it" "Cleaned 1 job" "$(Z clean --offline --all)"
|
||||
contains "status empty" "No jobs found." "$(Z status --offline)"
|
||||
|
||||
# --- config -----------------------------------------------------------------------------
|
||||
contains "config show --defaults" "retry_backoff_multiplier = 2.0" "$(Z config show --defaults)"
|
||||
defaults_out=$(Z config show --defaults)
|
||||
contains "config show --defaults" "retry_backoff_multiplier = 2.0" "$defaults_out"
|
||||
case $defaults_out in *max_high_jobs*) fail "config show --defaults is free of load levels" ;; *) pass "config show --defaults is free of load levels" ;; esac
|
||||
printf '[jobs]\nmax_retries = 0\nbogus = 1\n' >"$DIR/bad.conf"
|
||||
Z config validate --file "$DIR/bad.conf" >/dev/null 2>&1; [[ $? -eq 1 ]] && pass "validate flags bad config" || fail "validate flags bad config"
|
||||
printf '[jobs]\nmax_retries = 0\n' >"$DIR/good.conf"
|
||||
|
||||
Reference in new issue
Block a user