From 3dd7ec41f4067b35740aba970b6405dbd3113f8f Mon Sep 17 00:00:00 2001 Message-Id: <3dd7ec41f4067b35740aba970b6405dbd3113f8f.1717507031.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 27 Nov 2017 02:03:52 +0000 Subject: [PATCH] tests/dtest.py: Maintain a separate test root for each test. Organization: Straylight/Edgeware From: Mark Wooding Now they can run in parallel without breaking each other, which is nice. It's nice for two reasons: firstly, Automake changed behaviour and runs tests in parallel by default nowadays; and secondly, the tests are rather slow because they involve a bunch of waiting around for things, and waiting for stuff in parallel is easy. The downside is that we end up gobbling a lot of disk space with all of the logfiles. I think this is a good trade. --- tests/dtest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/dtest.py b/tests/dtest.py index a8ea64c..6f9e6a8 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -198,7 +198,7 @@ mail_sender no.such.user.sorry@greenend.org.uk def common_setup(): remove_dir(testroot) - os.mkdir(testroot) + os.makedirs(testroot) # Choose a port global port port = random.randint(49152, 65530) @@ -410,5 +410,6 @@ def command(args): tests = 0 failures = 0 daemon = None -testroot = "%s/tests/testroot" % top_builddir +testroot = "%s/tests/testroot/%s" % \ + (top_builddir, os.path.basename(sys.argv[0])) tracks = "%s/tracks" % testroot -- [mdw]