Skip to content

Commit

Permalink
Add epel coverage test in tmt try
Browse files Browse the repository at this point in the history
fix `epel` coverage test in tmt try
  • Loading branch information
Ismail Ibrahim Quwarah committed Sep 12, 2024
1 parent 23f3c89 commit 4e72e32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/try/basic/data/epel.exp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/expect -f
# Try epel

set timeout 180
spawn tmt try fedora@container --epel -p /plans/basic
expect "What do we do next?"
send -- "q\r"
expect eof
7 changes: 7 additions & 0 deletions tests/try/basic/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ rlJournalStart
rlAssertGrep "Run .* successfully finished. Bye for now!" $rlRun_LOG
rlPhaseEnd

rlPhaseStartTest "Epel"
rlRun -s "./epel.exp"
rlAssertGrep "Let's try.*/plans/basic" $rlRun_LOG
rlAssertGrep "out: PLAY \[Enable EPEL repositories\]" $rlRun_LOG
rlAssertGrep "Run .* successfully finished. Bye for now!" $rlRun_LOG
rlPhaseEnd

rlPhaseStartTest "Verbose Output"
rlRun -s "TMT_CONFIG_DIR=$config ./verbose.exp"
rlAssertGrep "custom-prepare" $rlRun_LOG
Expand Down

0 comments on commit 4e72e32

Please sign in to comment.