Allow beakerlib library without url/path#4427
Conversation
|
after testing, name work as design. More test log please check attachment. |
|
Ok @HouMinXi ready for a second try. To elaborate on the requirement. Let's say you have a repo $ tree -a .
.
├── .fmf
│ └── version
├── my_lib
│ ├── lib.sh
│ └── main.fmf
├── plans
│ └── main.fmf
└── tests
├── my_lib.fmf
└── test.sh
5 directories, 6 filesThen what you care about is how you define the tests, e.g. in this case it is summary: Test the my_lib beakerlib library
test: test.sh
require:
- type: library
name: /my_lib
nick: some_repo
and the tests file #!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "rlImport some_repo/my_lib"
rlPhaseEnd
rlPhaseStartTest
rlRun "..."
rlPhaseEnd
rlPhaseStartCleanup
rlPhaseEnd
rlJournalEndParticularly see the Hope this breakdown makes sense? |
|
Here is my test topo My simplified file-topology is as follows: in /networking/openvswitch/topo/main.fmf, I define the local file library as below: In plan-level I define discover as below: run the tmt with debug mode, raise error |
skycastlelily
left a comment
There was a problem hiding this comment.
LGTM, besides the nitpick and Therese's comment
bd968c1 to
c7fe256
Compare
tcornell-bus
left a comment
There was a problem hiding this comment.
The kernel example run successfully discovers the library now!
psss
left a comment
There was a problem hiding this comment.
Looks good to me and works as documented. Regarding the example, I'd suggest to explicitly mention how the rlImport command would look like and where the library is copied.
Without those keys we take the tmt tree to be the default value for the `path` Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Without those keys we take the tmt tree to be the default value for the
pathPull Request Checklist
Fixes #4422