This commit adds new variable to standard-role-beakerlib tests_generator_cmd which should contain bash command producing absolute paths to tests (one path per line) you wish to add to list of tests being run with the playbook.
Usage: tests_generator_cmd can be either written into playbook as variable:
---#Teststhatruninclassiccontext-hosts:localhostroles:-role:standard-test-beakerlibtags:-classictests:-func-login-shell-smoke-substitution-in-bashrequired_packages:-expect#login-shellrequiresexpectcommand-findutils#beakerlibneedsfindcommand-which#smokerequireswhichcommandtests_generator_cmd:'fmf--brief--keytest--format"{}/{}\n"--value"root"--value"data.get(''path'') or name"'
Pull request also changes task which copies tests to working directory (name: Copy tests to test environment), as I found the original way was redundant, I would appreciate feedback on this as well the whole pull request.
JIRA issue: https://projects.engineering.redhat.com/browse/RHELPLAN-3428
This commit adds new variable to standard-role-beakerlib
tests_generator_cmdwhich should contain bash command producing absolute paths to tests (one path per line) you wish to add to list of tests being run with the playbook.Usage:
tests_generator_cmdcan be either written into playbook as variable:Pull request also changes task which copies tests to working directory (name: Copy tests to test environment), as I found the original way was redundant, I would appreciate feedback on this as well the whole pull request.
Task/variable names are subject to change.