-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/plan: | ||
discover: | ||
how: shell | ||
tests: | ||
- name: Test 1 | ||
test: echo "1" | ||
- name: Test 2 | ||
test: echo "2" | ||
- name: Test 3 | ||
test: echo "3" | ||
- name: Test 4 | ||
test: echo "4" | ||
- name: Test 5 | ||
test: echo "5" | ||
provision: | ||
how: local | ||
execute: | ||
how: tmt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
summary: Verify --max option splits plans into smaller plans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
. /usr/share/beakerlib/beakerlib.sh || exit 1 | ||
|
||
rlJournalStart | ||
rlPhaseStartSetup | ||
rlRun "run=\$(mktemp -d)" 0 "Create run directory" | ||
rlRun "pushd data" | ||
rlPhaseEnd | ||
|
||
rlPhaseStartTest | ||
rlRun -s "tmt run -vv --id $run --max 3" | ||
rlAssertGrep "Splitting plan to batches of 3 tests." $rlRun_LOG | ||
rlAssertGrep "3 tests selected" $rlRun_LOG | ||
rlAssertGrep "summary: 3 tests passed" $rlRun_LOG | ||
rlAssertGrep "2 tests selected" $rlRun_LOG | ||
rlAssertGrep "summary: 2 tests passed" $rlRun_LOG | ||
rlPhaseEnd | ||
|
||
rlPhaseStartCleanup | ||
rlRun "popd" | ||
rlRun "rm -r $run" 0 "Remove run directory" | ||
rlPhaseEnd | ||
rlJournalEnd |