From f62bbc548f5e99fee24b370ba6eb01ddcb69ad83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 9 Jan 2013 20:11:38 +0000 Subject: [PATCH] chdtest.py: ignore hidden Unix folders / fixed subprocess.Popen() parameter (fixes execution on non-Windows platfors) (nw) --- src/regtests/chdman/chdtest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/regtests/chdman/chdtest.py b/src/regtests/chdman/chdtest.py index cd68f842e9c..5b659015405 100644 --- a/src/regtests/chdman/chdtest.py +++ b/src/regtests/chdman/chdtest.py @@ -50,18 +50,21 @@ failure = False for root, dirs, files in os.walk(inputPath): for d in dirs: + if d.startswith("."): + continue + inFile = os.path.join(root, d, "in") # TODO: make this better outFile = os.path.join(root, d, "out.chd").replace("input", "output") tempFilePath = os.path.join(tempPath, d) tempFile = os.path.join(tempFilePath, "out.chd") - cmd = "" + cmd = [] if not os.path.exists(tempFilePath): os.makedirs(tempFilePath) if d.startswith("createcd"): ext = d.split("_", 2)[1] inFile += "." + ext - cmd = chdmanBin + " createcd -f -i " + inFile + " -o " + tempFile + cmd = [chdmanBin, "createcd", "-f", "-i", inFile, "-o", tempFile] else: print "unsupported mode" continue