diff options
author | albert-github <albert.tests@gmail.com> | 2020-07-06 10:13:20 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-07-06 10:13:20 (GMT) |
commit | e51bde4cca9e79ae11c54c45cbcc29233fad0ac1 (patch) | |
tree | debc184d1607499702a7fcb88a4666d558455e8b /testing | |
parent | 8c12604a84faabf6beeef7f159692ccddcb94dc6 (diff) | |
download | Doxygen-e51bde4cca9e79ae11c54c45cbcc29233fad0ac1.zip Doxygen-e51bde4cca9e79ae11c54c45cbcc29233fad0ac1.tar.gz Doxygen-e51bde4cca9e79ae11c54c45cbcc29233fad0ac1.tar.bz2 |
Superfluous space in "TEST_FLAGS"
When having extra spaces in TEST_FLAGS like(note the double space before `--ip`):
```
make tests TEST_FLAGS="--keep --id=1"
```
or
```
make tests TEST_FLAGS="--id=1 --id=2"
```
we get a message like;
```
[100%] Running doxygen tests...
usage: runtests.py [-h] [--updateref] [--doxygen [DOXYGEN]]
[--xmllint [XMLLINT]] [--id IDS [IDS ...]]
[--start_id START_ID] [--end_id END_ID] [--all]
[--inputdir [INPUTDIR]] [--outputdir [OUTPUTDIR]]
[--noredir] [--pool [POOL]] [--xml] [--rtf] [--docbook]
[--xhtml] [--xmlxsd] [--pdf] [--subdirs] [--clang] [--keep]
[--cfg CFGS [CFGS ...]]
runtests.py: error: unrecognized arguments:
NMAKE : fatal error U1077: 'D:\Programs\Python\Python37\python.exe' : return code '0x2'
Stop.
```
By stripping the spaces in the arguments this can be overcome
Diffstat (limited to 'testing')
-rwxr-xr-x | testing/runtests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/runtests.py b/testing/runtests.py index c7b7bc7..129a781 100755 --- a/testing/runtests.py +++ b/testing/runtests.py @@ -487,6 +487,8 @@ def split_and_keep(s, sep): vv = val.split(" ",1) if ((len(vv) == 1) and not vv[0] == ''): retVal += vv + if (len(vv) == 2): + vv[1] = vv[1].strip() if ((len(vv) == 2) and not vv[1] == ''): retVal += vv if ((len(vv) == 2) and vv[1] == ''): |