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 df155b8

Browse filesBrowse files
addaleaxtargos
authored andcommitted
test: fix os-release check for Ubuntu in SEA test
For example, my `/etc/os-release` file begins with ``` PRETTY_NAME="Ubuntu 22.04.2 LTS" NAME="Ubuntu" VERSION_ID="22.04" ``` so in order to match the regexp here, the `/m` flag is necessary. PR-URL: #46838 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent f914bff commit df155b8
Copy full SHA for df155b8

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-single-executable-application.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-single-executable-application.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (process.config.variables.want_separate_host_toolset !== 0)
4141
if (process.platform === 'linux') {
4242
try {
4343
const osReleaseText = readFileSync('/etc/os-release', { encoding: 'utf-8' });
44-
if (!/^NAME="Ubuntu"/.test(osReleaseText)) {
44+
if (!/^NAME="Ubuntu"/m.test(osReleaseText)) {
4545
throw new Error('Not Ubuntu.');
4646
}
4747
} catch {

0 commit comments

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