Skip to content

Commit 7db7a82

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 02f2ebd commit 7db7a82

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
@@ -1523,10 +1523,15 @@ def Main():
15231523
if not exists(vm):
15241524
print "Can't find shell executable: '%s'" % vm
15251525
continue
1526+
archEngineContext = Execute([vm, "-p", "process.arch"], context)
1527+
vmArch = archEngineContext.stdout.rstrip()
1528+
if archEngineContext.exit_code is not 0 or vmArch == "undefined":
1529+
print "Can't determine the arch of: '%s'" % vm
1530+
continue
15261531
env = {
15271532
'mode': mode,
15281533
'system': utils.GuessOS(),
1529-
'arch': arch,
1534+
'arch': vmArch,
15301535
}
15311536
test_list = root.ListTests([], path, context, arch, mode)
15321537
unclassified_tests += test_list

0 commit comments

Comments
 (0)