Skip to content

Commit

Permalink
allow for more error formats
Browse files Browse the repository at this point in the history
newer alpine versions seem to generate yet another format:
mktemp: : No such file or directory
  • Loading branch information
martin-schulze-vireso committed Dec 19, 2024
1 parent 048aa4c commit 7d839ca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/70-temp-10-temp_make.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ fixtures 'temp'
[ "$status" -eq 1 ]
[ "${#lines[@]}" -eq 3 ]
[ "${lines[0]}" == '-- ERROR: temp_make --' ]
if [[ "$OSTYPE" == darwin* ]]; then
REGEX="mktemp: mkdtemp failed on $BATS_TMPDIR/.*: No such file or directory"
else
REGEX="mktemp: (failed to create directory via template|(\(null\): )?No such file or directory)"
fi

REGEX="mktemp:.*No such file or directory"
[[ ${lines[1]} =~ $REGEX ]] || false
[ "${lines[2]}" == '--' ]
}
Expand Down

0 comments on commit 7d839ca

Please sign in to comment.