Fix format.py to look for .bat on Windows
authorMichelle McDaniel <adiaaida@gmail.com>
Wed, 26 Oct 2016 15:45:10 +0000 (08:45 -0700)
committerMichelle McDaniel <adiaaida@gmail.com>
Wed, 26 Oct 2016 15:46:59 +0000 (08:46 -0700)
https://github.com/dotnet/jitutils/pull/56 changed the file extension for
the script files on Windows to be .bat, so the format.py script needs to
be updated.

Commit migrated from https://github.com/dotnet/coreclr/commit/722708800eb809abad36cd92c6ff63f1773fd4db

src/coreclr/tests/scripts/format.py

index b1957f3..ae8348a 100644 (file)
@@ -185,7 +185,7 @@ def main(argv):
     if platform == 'Linux' or platform == 'OSX':
         jitformat = os.path.join(jitformat, "jit-format")
     elif platform == 'Windows_NT':
-        jitformat = os.path.join(jitformat,"jit-format.cmd")
+        jitformat = os.path.join(jitformat,"jit-format.bat")
     errorMessage = ""
 
     builds = ["Checked", "Debug", "Release"]