From 1b2009d36f0a28cfaee353e5d309b96bb5b49547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 18 Jun 2013 00:41:36 +0000 Subject: [PATCH] chdtest.py: added support for .raw input for createhd (nw) --- src/regtests/chdman/chdtest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]