summaryrefslogtreecommitdiffstatshomepage
path: root/src/regtests
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2013-06-18 00:41:36 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2013-06-18 00:41:36 +0000
commit1b2009d36f0a28cfaee353e5d309b96bb5b49547 (patch)
treebcd83587b453950fd1eff59db5ff562bcbeb68df /src/regtests
parent7ab7bc0f6c25b56b0a951d70928d3bf0fa9c84c6 (diff)
chdtest.py: added support for .raw input for createhd (nw)
Diffstat (limited to 'src/regtests')
-rw-r--r--src/regtests/chdman/chdtest.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/regtests/chdman/chdtest.py b/src/regtests/chdman/chdtest.py
index 8b8d89f55ed..8e454f86515 100644
--- a/src/regtests/chdman/chdtest.py
+++ b/src/regtests/chdman/chdtest.py
@@ -73,7 +73,12 @@ for root, dirs, files in os.walk(inputPath):
inFile += "." + ext
cmd = [chdmanBin, "createcd", "-f", "-i", inFile, "-o", tempFile]
elif d.startswith("createhd"):
- cmd = [chdmanBin, "createhd", "-f", "-o", tempFile]
+ ext = d.split("_", 2)[1]
+ inFile += "." + ext
+ if os.path.exists(inFile):
+ cmd = [chdmanBin, "createhd", "-f", "-i", inFile, "-o", tempFile]
+ else:
+ cmd = [chdmanBin, "createhd", "-f", "-o", tempFile]
elif d.startswith("copy"):
inFile += ".chd"
cmd = [chdmanBin, "copy", "-f", "-i", inFile, "-o", tempFile]