Merge #9946: Fix build errors if spaces in path or parent directory

b1f584d fix build if spaces in src dir path (Matthew Zipkin)

Tree-SHA512: 5834690c1f63b85ed04bb8ed411a94da04738534364d58bd9ee333ccff7129b2bbb710f31598c40123199e023da02c1745514294af3efdbb2c2e4c1320aded35
This commit is contained in:
Wladimir J. van der Laan 2017-03-25 12:15:01 +01:00 committed by Pasta
parent ba20c9031d
commit 3793129315
No known key found for this signature in database
GPG Key ID: 0B8EB7A31A44D9C6
2 changed files with 7 additions and 6 deletions

View File

@ -250,8 +250,8 @@ BITCOIN_CORE_H = \
obj/build.h: FORCE obj/build.h: FORCE
@$(MKDIR_P) $(builddir)/obj @$(MKDIR_P) $(builddir)/obj
@$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \ @$(top_srcdir)/share/genbuild.sh "$(abs_top_builddir)/src/obj/build.h" \
$(abs_top_srcdir) "$(abs_top_srcdir)"
libdash_util_a-clientversion.$(OBJEXT): obj/build.h libdash_util_a-clientversion.$(OBJEXT): obj/build.h
# server: shared between dashd and dash-qt # server: shared between dashd and dash-qt

View File

@ -105,7 +105,7 @@ BASE_SCRIPTS= [
ZMQ_SCRIPTS = [ ZMQ_SCRIPTS = [
# ZMQ test can only be run if Dash Core was built with zmq-enabled. # ZMQ test can only be run if Dash Core was built with zmq-enabled.
# call test_runner.py with -nozmq to explicitly exclude these tests. # call test_runner.py with -nozmq to explicitly exclude these tests.
"zmq_test.py"] 'zmq_test.py']
EXTENDED_SCRIPTS = [ EXTENDED_SCRIPTS = [
# These tests are not run by the travis build process. # These tests are not run by the travis build process.
@ -219,9 +219,9 @@ def main():
sys.exit(0) sys.exit(0)
if args.help: if args.help:
# Print help for test_runner.py, then print help of the first script and exit. # Print help for test_runner.py, then print help of the first script (with args removed) and exit.
parser.print_help() parser.print_help()
subprocess.check_call((config["environment"]["SRCDIR"] + '/test/functional/' + test_list[0]).split() + ['-h']) subprocess.check_call([(config["environment"]["SRCDIR"] + '/test/functional/' + test_list[0].split()[0])] + ['-h'])
sys.exit(0) sys.exit(0)
run_tests(test_list, config["environment"]["SRCDIR"], config["environment"]["BUILDDIR"], config["environment"]["EXEEXT"], args.jobs, args.coverage, passon_args) run_tests(test_list, config["environment"]["SRCDIR"], config["environment"]["BUILDDIR"], config["environment"]["EXEEXT"], args.jobs, args.coverage, passon_args)
@ -312,9 +312,10 @@ class TestHandler:
port_seed = ["--portseed={}".format(len(self.test_list) + self.portseed_offset)] port_seed = ["--portseed={}".format(len(self.test_list) + self.portseed_offset)]
log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16) log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16)
log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16) log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16)
test_argv = t.split()
self.jobs.append((t, self.jobs.append((t,
time.time(), time.time(),
subprocess.Popen((self.tests_dir + t).split() + self.flags + port_seed, subprocess.Popen([self.tests_dir + test_argv[0]] + test_argv[1:] + self.flags + port_seed,
universal_newlines=True, universal_newlines=True,
stdout=log_stdout, stdout=log_stdout,
stderr=log_stderr), stderr=log_stderr),