commit 54859d1a7e279d839079f93620935e56eeaf33db from: Stefan Sperling date: Fri Jan 03 15:19:24 2025 UTC make seq(1) invocations in test_log_commit_keywords() portable The OpenBSD version of seq defaults to an increment value of -1 here. On Debian we have to set the increment value to -1 explicitly. Otherwise, seq produces no output at all and the test fails. commit - 3fd8274f36c449b4db01aa4f5e6ab9709facd8f3 commit + 54859d1a7e279d839079f93620935e56eeaf33db blob - b1c3c8ec3866e7ac66371da08256f2fa1212a13c blob + 53f7de0a130faea19e3cd437e589876e1f69f591 --- regress/cmdline/log.sh +++ regress/cmdline/log.sh @@ -988,7 +988,7 @@ test_log_commit_keywords() { set -- "$@" "$(git_show_head $testroot/repo)" done - for i in $(seq 16 2); do + for i in $(seq 16 -1 2); do printf '%s %.7s commit number %s\n' \ "$d" $(pop_idx $i $@) "$(( i-1 ))" \ >> $testroot/stdout.expected @@ -1026,7 +1026,7 @@ test_log_commit_keywords() { echo -n > "$testroot/stdout.expected" - for i in $(seq 9 2); do + for i in $(seq 9 -1 2); do printf '%s %.7s commit number %s\n' \ "$d" $(pop_idx $i $@) "$(( i-1 ))" \ >> $testroot/stdout.expected @@ -1047,7 +1047,7 @@ test_log_commit_keywords() { # from head to the base commit using -x printf '%s %-7s commit number 16\n' "$d" "master" > \ $testroot/stdout.expected - for i in $(seq 16 9); do + for i in $(seq 16 -1 9); do printf '%s %.7s commit number %s\n' \ "$d" $(pop_idx $i $@) $(( i-1 )) \ >> $testroot/stdout.expected