trunk/src/regtests/chdman/chdtest.py
r23760 | r23761 | |
73 | 73 | inFile += "." + ext |
74 | 74 | cmd = [chdmanBin, "createcd", "-f", "-i", inFile, "-o", tempFile] |
75 | 75 | elif d.startswith("createhd"): |
76 | | cmd = [chdmanBin, "createhd", "-f", "-o", tempFile] |
| 76 | ext = d.split("_", 2)[1] |
| 77 | inFile += "." + ext |
| 78 | if os.path.exists(inFile): |
| 79 | cmd = [chdmanBin, "createhd", "-f", "-i", inFile, "-o", tempFile] |
| 80 | else: |
| 81 | cmd = [chdmanBin, "createhd", "-f", "-o", tempFile] |
77 | 82 | elif d.startswith("copy"): |
78 | 83 | inFile += ".chd" |
79 | 84 | cmd = [chdmanBin, "copy", "-f", "-i", inFile, "-o", tempFile] |