summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichelle McDaniel <adiaaida@gmail.com>2016-09-21 14:57:18 -0700
committerGitHub <noreply@github.com>2016-09-21 14:57:18 -0700
commitfd9742be1d02890a93705fba456ca0d91fa7989f (patch)
tree167df35401442666c13454c8c7eda8ad4af422a5 /tests
parentd891a2c0f3e07c50837155b61b114a1e6e585793 (diff)
parenteb8dae1c33dc8f7fcc8c6e574a164720a9a15f62 (diff)
downloadcoreclr-fd9742be1d02890a93705fba456ca0d91fa7989f.tar.gz
coreclr-fd9742be1d02890a93705fba456ca0d91fa7989f.tar.bz2
coreclr-fd9742be1d02890a93705fba456ca0d91fa7989f.zip
Merge pull request #7291 from adiaaida/format
Reformat jit source base and turn on formatting jobs for PR
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/format.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/scripts/format.py b/tests/scripts/format.py
index 50a0d3dc70..71f46e304a 100644
--- a/tests/scripts/format.py
+++ b/tests/scripts/format.py
@@ -176,18 +176,16 @@ def main(argv):
my_env["PATH"] += os.pathsep + jitutilsBin
current_dir = os.getcwd()
- if os.path.isdir(jitutilsBin):
- os.chdir(jitutilsBin)
- else:
+ if not os.path.isdir(jitutilsBin):
print("Jitutils not built!")
return -1
- jitformat = ""
+ jitformat = jitutilsBin
if platform == 'Linux' or platform == 'OSX':
- jitformat = "jit-format"
+ jitformat = os.path.join(jitformat, "jit-format")
elif platform == 'Windows_NT':
- jitformat = "jit-format.cmd"
+ jitformat = os.path.join(jitformat,"jit-format.cmd")
for build in ["Checked", "Debug", "Release"]:
for project in ["dll", "standalone", "crossgen"]: