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 40ae2a6

Browse filesBrowse files
sam-githubtargos
authored andcommitted
tools: move python code out of jenkins shell
https://ci.nodejs.org/job/node-test-commit-v8-linux/configure echoes python code into tools and runs it. Move these scripts into tools for better maintainability. Once this lands and is back-ported into LTS branches a bunch of shell code can be deleted from the job. PR-URL: #28458 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent d38b985 commit 40ae2a6
Copy full SHA for 40ae2a6

File tree

Expand file treeCollapse file tree

4 files changed

+18
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+18
-0
lines changed
Open diff view settings
Collapse file

‎tools/getarch.py‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from __future__ import print_function
2+
from utils import GuessArchitecture
3+
arch = GuessArchitecture()
4+
5+
# assume 64 bit unless set specifically
6+
print(GuessArchitecture() \
7+
.replace('ia32', 'x64') \
8+
.replace('ppc', 'ppc64') \
9+
.replace('arm', 'arm64') \
10+
.replace('s390', 's390x'))
Collapse file

‎tools/getendian.py‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from __future__ import print_function
2+
import sys
3+
# "little" or "big"
4+
print(sys.byteorder)
Collapse file

‎tools/getmachine.py‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from __future__ import print_function
2+
import platform
3+
print(platform.machine())
Collapse file

‎tools/getnodeversion.py‎

Copy file name to clipboardExpand all lines: tools/getnodeversion.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import os
23
import re
34

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.