Previous 199869 Revisions Next

r20163 Wednesday 9th January, 2013 at 20:11:38 UTC by Oliver Stöneberg
chdtest.py: ignore hidden Unix folders / fixed subprocess.Popen() parameter (fixes execution on non-Windows platfors) (nw)
[src/regtests/chdman]chdtest.py

trunk/src/regtests/chdman/chdtest.py
r20162r20163
5050
5151for root, dirs, files in os.walk(inputPath):
5252   for d in dirs:
53      if d.startswith("."):
54         continue
55   
5356      inFile = os.path.join(root, d, "in")
5457      # TODO: make this better
5558      outFile = os.path.join(root, d, "out.chd").replace("input", "output")
5659      tempFilePath = os.path.join(tempPath, d)
5760      tempFile = os.path.join(tempFilePath, "out.chd")
58      cmd = ""
61      cmd = []
5962      if not os.path.exists(tempFilePath):
6063         os.makedirs(tempFilePath)
6164      if d.startswith("createcd"):
6265         ext = d.split("_", 2)[1]
6366         inFile += "." + ext
64         cmd = chdmanBin + " createcd -f -i " + inFile + " -o " + tempFile
67         cmd = [chdmanBin, "createcd", "-f", "-i", inFile, "-o", tempFile]
6568      else:
6669         print "unsupported mode"
6770         continue

Previous 199869 Revisions Next


© 1997-2024 The MAME Team