-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Directive
select
to control node selection
Expected usage with virtual tests while keeping the parent test as well as hiding leaf nodes from selection Fix: #221 Fix: #231
- Loading branch information
1 parent
4f88531
commit d9aee8e
Showing
8 changed files
with
60 additions
and
5 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
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
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 |
Empty file.
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,2 @@ | ||
/: | ||
select: false |
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,3 @@ | ||
/: | ||
select: true | ||
test: echo |
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,10 @@ | ||
summary: Verify functionality of the `select` directive | ||
description: | ||
Sometimes the node should stay reported as a object | ||
even though it has child nodes. Using this directive | ||
allows it. Real life example is to keep "/test" available | ||
after virtual tests "/test/virtual_foo" and "test/virtual_bar" | ||
are created. | ||
|
||
The opposite behavior, not selecting the node even though | ||
it has no child nodes is also possible and tested. |
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,15 @@ | ||
#!/bin/bash | ||
. /usr/share/beakerlib/beakerlib.sh || exit 1 | ||
|
||
rlJournalStart | ||
rlPhaseStartTest | ||
rlRun "pushd data" | ||
|
||
rlRun -s "fmf ls" | ||
rlAssertGrep "^/foo$" $rlRun_LOG | ||
rlAssertGrep "^/foo/child$" $rlRun_LOG | ||
rlAssertNotGrep "^/foo/hidden$" $rlRun_LOG | ||
|
||
rlRun "popd" | ||
rlPhaseEnd | ||
rlJournalEnd |