URL: https://github.com/freeipa/freeipa/pull/4149 Author: stanislavlevin Title: #4149: ipatests: Allow zero-length arguments Action: opened
PR body: """ Currently, such arguments are eaten by 'ipa-run-tests' script as they are not quoted.
For example, ```running ipa-run-tests -k ''``` results in the actual invocation would be like as: ``` ['/bin/sh', '--norc', '--noprofile', '-c', '--', "/usr/bin/python3 -c 'import sys,pytest;sys.exit(pytest.main())' -o " 'cache_dir=/tmp/pytest-of-root/pytest-12/test_ipa_run_tests_empty_expression0/.pytest_cache ' '--confcutdir=/usr/lib64/python3/site-packages/ipatests -k '] ```
Note: expressions or marks could be empty as a result of the building of command line args by more high-level tools, scripts, etc.
So, a short-termed solution is the quotting of zero-length arguments.
Fixes: https://pagure.io/freeipa/issue/8173 Signed-off-by: Stanislav Levin slev@altlinux.org """
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/4149/head:pr4149 git checkout pr4149
URL: https://github.com/freeipa/freeipa/pull/4149 Author: stanislavlevin Title: #4149: ipatests: Allow zero-length arguments Action: closed
To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/4149/head:pr4149 git checkout pr4149
freeipa-devel@lists.fedorahosted.org