X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/dc463fd87fe81546cb8595db3c476c9a7280dd23..3dd7ec41f4067b35740aba970b6405dbd3113f8f:/tests/dtest.py 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