#2 Flatten priority (load levels): run only one job at a time #3

Open
daniel wants to merge 7 commits from feature/#2-flatten-priority-load-levels into develop
pull from: feature/#2-flatten-priority-load-levels
Showing only changes of commit 18c77a6e96 - Show all commits
+3 -1
View File
@@ -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"