-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for special characters in beakerlib phase names
- Loading branch information
Showing
5 changed files
with
53 additions
and
15 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
19 changes: 19 additions & 0 deletions
19
tests/execute/result/special/beaker-phases-special-names.sh
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,19 @@ | ||
#!/bin/bash | ||
. /usr/share/beakerlib/beakerlib.sh || exit 1 | ||
|
||
|
||
rlJournalStart | ||
for i in \ | ||
# Ensure the regression from #teemtee/tmt/3333 is covered | ||
/sbin/ldconfig \ | ||
/usr/sbin/ldconfig \ | ||
|
||
# Cover other special characters in the phase name | ||
'//01_some/-phase//na--me-' \ | ||
'\$02_so\$me<->phase?!*na--me/-' | ||
do | ||
rlPhaseStartTest "$i" | ||
rlRun "phase-name: ${i}" | ||
rlPhaseEnd | ||
done | ||
rlJournalEnd |
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,6 @@ | ||
discover: | ||
how: fmf | ||
provision: | ||
how: container | ||
execute: | ||
how: tmt |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
"/0..7 special: characters: *$@|&>< in: the: name": | ||
summary: Basic test with special characters in the test/subtest name | ||
result: restraint | ||
test: "tmt-report-result '0..7 \"special\": \" characters: *$@|&>< in: the: name' PASS" | ||
|
||
/beakerlib-special-names: | ||
summary: Beakerlib phases with special characters | ||
framework: beakerlib | ||
test: ./beaker-phases-special-names.sh |