Comments (5)
this has to be solved very carefully. as discussed with @psss , this is very connected with virtual testcases, what has another location of self itself and what test:
key means,
for this purpose this is connected with beaker, that there is directory and you don't care that in test:
key there is for examle ./runtest.sh
or make run
what will do the same.
but in case there should be something usefull than just non-emty string, close to true
value
from fmf.
partially solved by: #16
from fmf.
Yes, we need to make very clear how the path will be detected and how tests will be executed. There's is an initial draft of the proposed attributes on the Fedora wiki:
https://fedoraproject.org/wiki/CI/Metadata
Anyway, I think the new --format
feature should probably cover this use case. See examples:
http://fmf.readthedocs.io/en/devel/examples.html#format
What do you think, Jakub?
from fmf.
the best solution could be: add this new prefix, what leads to ivoked test (dirname + basename) #19 with this format feature
from fmf.
Using the new --format
option together with the Tree.root attribute this can be done:
> fmf examples/wget/ --key test --format '{}/{}/{}\n' \
--value 'root' --value 'data.get("path") or name' --value 'data["test"]'
Path can be used to specify directory if it differs from the object name:
description: Check recursive download options
tags: [Tier2]
test: runtest.sh
path: wget/recursion
The results looks like this:
/home/psss/git/fmf/examples/wget/download/test/runtest.sh
/home/psss/git/fmf/examples/wget/recursion/runtest.sh
/home/psss/git/fmf/examples/wget/recursion/runtest.sh
/home/psss/git/fmf/examples/wget/protocols/ftp/runtest.sh
/home/psss/git/fmf/examples/wget/protocols/http/runtest.sh
/home/psss/git/fmf/examples/wget/protocols/https/runtest.sh
Closing as this general solution should cover the requested use case.
from fmf.
Related Issues (20)
- Add type annotations to fmf code HOT 1
- Case-sensitivity of context adjusting is unclear HOT 4
- Add distro and arch info to guests.yaml
- Merging for nested dictionaries defined in root HOT 1
- Replace jsonschema.RefResolver as is being deprecated HOT 2
- RFE: Support for merging phase metadata when multiple phases are used HOT 1
- Api documentation
- `.fmf/config` allow to redefine tree root relatively
- `.fmf/config` define type/flavor of an fmf tree
- Python improvements
- More `dict` and `Path` like api
- New project `fmf-jinja`
- Migrate `tmt.utils.field` and `tmt.utils.DataContainer` to `fmf` HOT 4
- Rewriting `fmf.Tree`
- Add callback to all methods changing node data HOT 2
- Keeping the 'node' as an object even though it has children and is not a leaf HOT 1
- Support additions to context made by adjust rules for follow-up rules HOT 1
- Missing `sdist` in PyPI HOT 1
- Add operator for REGEX matching in context HOT 1
- `context` should always populate `path` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fmf.