diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-01-09 20:11:38 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2013-01-09 20:11:38 +0000 |
commit | f62bbc548f5e99fee24b370ba6eb01ddcb69ad83 (patch) | |
tree | a6277c32f9b4de3ae494c82b19ee5ce0d3f6d2da | |
parent | 0c33249b57030ddf068d475dc9dc41e0440bff9a (diff) |
chdtest.py: ignore hidden Unix folders / fixed subprocess.Popen() parameter (fixes execution on non-Windows platfors) (nw)
-rw-r--r-- | src/regtests/chdman/chdtest.py | 7 |
1 files 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 |