diff --git a/test/parallel/test-single-executable-application.js b/test/parallel/test-single-executable-application.js index bc0eb763de748c..f41b9d7778d7d3 100644 --- a/test/parallel/test-single-executable-application.js +++ b/test/parallel/test-single-executable-application.js @@ -41,7 +41,7 @@ if (process.config.variables.want_separate_host_toolset !== 0) if (process.platform === 'linux') { try { const osReleaseText = readFileSync('/etc/os-release', { encoding: 'utf-8' }); - if (!/^NAME="Ubuntu"/.test(osReleaseText)) { + if (!/^NAME="Ubuntu"/m.test(osReleaseText)) { throw new Error('Not Ubuntu.'); } } catch {