Skip to content

Commit

Permalink
beaker: fix expected error in build-spec.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Mar 1, 2024
1 parent ed57226 commit 8594b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beaker-tests/Sanity/copr-cli-basic-operations/build-spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ rlJournalStart
rlAssertEquals "" `grep -r 'does not exist' $OUTPUT |wc -l` 1
rlAssertEquals "" `grep -r 'Uploading package' $OUTPUT |wc -l` 0

# Or a non-existing CoprDir
# Or a non-existing and invalid CoprDir
OUTPUT=`mktemp`
rlRun "copr-cli build --nowait ${NAME_PREFIX}BuildSpec:foo $HERE/files/vera.spec &> $OUTPUT" 1
rlAssertEquals "" `grep -r "doesn't exist" $OUTPUT |wc -l` 1
rlAssertEquals "" `grep -r "Please use directory format" $OUTPUT |wc -l` 1
rlAssertEquals "" `grep -r 'Uploading package' $OUTPUT |wc -l` 0

# Or a non-existing chroot
Expand Down

0 comments on commit 8594b6f

Please sign in to comment.