Skip to content

Commit

Permalink
Fix error check to work on Podman
Browse files Browse the repository at this point in the history
Podman prepends Error: before printing errors so need to ignore
beginning of error message.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
  • Loading branch information
rhatdan authored and pull[bot] committed Oct 28, 2022
1 parent 6d58787 commit 8892536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bud.bats
Expand Up @@ -3169,7 +3169,7 @@ _EOF

@test "bud - accept at most one arg" {
run_buildah 125 build --signature-policy ${TESTSDIR}/policy.json ${TESTSDIR}/bud/dns extraarg
assert "accepts at most 1 arg(s), received 2" "error while parsing arguments"
assert "$output" =~ ".*accepts at most 1 arg\(s\), received 2" "Should fail when passed extra arg after context directory"
}

@test "bud with --add-host" {
Expand Down

0 comments on commit 8892536

Please sign in to comment.