-
Notifications
You must be signed in to change notification settings - Fork 161
Allow beakerlib library without url/path #4427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
after testing, name work as design. More test log please check attachment. |
Without those keys we take the tmt tree to be the default value for the `path` Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
|
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? |
Signed-off-by: Cristian Le <git@lecris.dev>
|
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 |
Without those keys we take the tmt tree to be the default value for the
pathPull Request Checklist
Fixes #4422