Skip to content

Commit a39051f

Browse files
santigimenoMyles Borins
authored andcommitted
test: make arch available in status files
The value is retrieved from `process.arch` in node itself. PR-URL: #5997 Reviewed-By: João Reis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
1 parent ccf90b6 commit a39051f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,10 +1514,15 @@ def Main():
15141514
if not exists(vm):
15151515
print "Can't find shell executable: '%s'" % vm
15161516
continue
1517+
archEngineContext = Execute([vm, "-p", "process.arch"], context)
1518+
vmArch = archEngineContext.stdout.rstrip()
1519+
if archEngineContext.exit_code is not 0 or vmArch == "undefined":
1520+
print "Can't determine the arch of: '%s'" % vm
1521+
continue
15171522
env = {
15181523
'mode': mode,
15191524
'system': utils.GuessOS(),
1520-
'arch': arch,
1525+
'arch': vmArch,
15211526
}
15221527
test_list = root.ListTests([], path, context, arch, mode)
15231528
unclassified_tests += test_list

0 commit comments

Comments
 (0)