Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7db7a82

Browse filesBrowse 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 <reis@janeasystems.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
1 parent 02f2ebd commit 7db7a82
Copy full SHA for 7db7a82

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Collapse file

‎tools/test.py‎

Copy file name to clipboardExpand all lines: tools/test.py
+6-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.