git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58bfb3
)
waf: fixed make test with TESTS="test1 test2"
author
Andrew Tridgell
<tridge@samba.org>
Thu, 2 Sep 2010 06:45:50 +0000
(16:45 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 4 Sep 2010 02:29:10 +0000
(12:29 +1000)
when multiple tests are specified, make escapes the space in MAKEFLAGS
with a backslash, so we need to use shlex.split()
buildtools/wafsamba/samba_utils.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_utils.py
b/buildtools/wafsamba/samba_utils.py
index 304264b363d9915b8dcfc6c89b8591f73d3ecc10..d858c5c9e5e2a61b0e16a0da86261265a1674d67 100644
(file)
--- a/
buildtools/wafsamba/samba_utils.py
+++ b/
buildtools/wafsamba/samba_utils.py
@@
-451,7
+451,9
@@
def CHECK_MAKEFLAGS(bld):
return
makeflags = os.environ.get('MAKEFLAGS')
jobs_set = False
- for opt in makeflags.split():
+ # we need to use shlex.split to cope with the escaping of spaces
+ # in makeflags
+ for opt in shlex.split(makeflags):
# options can come either as -x or as x
if opt[0:2] == 'V=':
Options.options.verbose = Logs.verbose = int(opt[2:])