mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 17:23:35 +00:00
testing: workaround pytest parser bug in pytest-atf-wrapper.
Reviewed by: lwhsu, kp Differential Revision: https://reviews.freebsd.org/D35614 MFC after: 2 weeks
This commit is contained in:
parent
8010b7a78a
commit
9c42645a1e
@ -137,13 +137,15 @@ class Handler {
|
||||
if (flag_cleanup) {
|
||||
args.push_back("--atf-cleanup");
|
||||
}
|
||||
// workaround pytest parser bug:
|
||||
// https://github.com/pytest-dev/pytest/issues/3097
|
||||
// use '--arg=value' format instead of '--arg value' for all
|
||||
// path-like options
|
||||
if (!src_dir.empty()) {
|
||||
args.push_back("--atf-source-dir");
|
||||
args.push_back(src_dir);
|
||||
args.push_back("--atf-source-dir=" + src_dir);
|
||||
}
|
||||
if (!dst_file.empty()) {
|
||||
args.push_back("--atf-file");
|
||||
args.push_back(dst_file);
|
||||
args.push_back("--atf-file=" + dst_file);
|
||||
}
|
||||
for (auto &pair: kv_list) {
|
||||
args.push_back("--atf-var");
|
||||
|
Loading…
Reference in New Issue
Block a user