Browse Source

Fix tests: Pass toolchain file through as absolute path

default_compile_flags
vector-of-bool 5 years ago
parent
commit
ccf8e021b0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      tools/test.py

+ 4
- 1
tools/test.py View File

@@ -139,7 +139,10 @@ def main(argv: List[str]) -> int:
)
args = parser.parse_args(argv)

opts = TestOptions(exe=Path(args.exe).absolute(), toolchain=args.toolchain)
tc = args.toolchain
if not tc.startswith(':'):
tc = Path(tc).absolute()
opts = TestOptions(exe=Path(args.exe).absolute(), toolchain=tc)

if not args.skip_bootstrap_test and not bootstrap_self(opts):
return 2

Loading…
Cancel
Save