Skip to content

Commit

Permalink
Fix PMI asm diffs
Browse files Browse the repository at this point in the history
Fix scratch_root validation


Commit migrated from dotnet/coreclr@2062dc2
  • Loading branch information
BruceForstall committed Mar 6, 2019
1 parent 182c2c0 commit 2508b18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/tests/scripts/run-pmi-diffs.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ def validate_args(args):
coreclr_setup_args.verify(args,
"diff_root",
lambda directory: os.path.isdir(directory) if directory is not None else True,
"Base root is not a valid directory",
"Diff root is not a valid directory",
modify_arg=lambda directory: nth_dirname(os.path.abspath(sys.argv[0]), 3) if directory is None else os.path.abspath(directory))

coreclr_setup_args.verify(args,
"scratch_root",
lambda directory: os.path.isdir(directory) if directory is not None else True,
"Base root is not a valid directory",
modify_arg=lambda directory: nth_dirname(os.path.abspath(sys.argv[0]), 3) if directory is None else os.path.abspath(directory))
lambda unused: True,
"Error setting scratch_root",
modify_arg=lambda directory: os.path.join(coreclr_setup_args.diff_root, '_', 'pmi') if directory is None else os.path.abspath(directory))

coreclr_setup_args.verify(args,
"skip_baseline_build",
Expand Down

0 comments on commit 2508b18

Please sign in to comment.