mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
test: add spawnSyncAndAssert
util
PR-URL: https://github.com/nodejs/node/pull/52132 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
f69946b905
commit
c714cda9a7
21 changed files with 77 additions and 72 deletions
|
@ -14,7 +14,7 @@ skipIfSingleExecutableIsNotSupported();
|
|||
const fixtures = require('../common/fixtures');
|
||||
const tmpdir = require('../common/tmpdir');
|
||||
const { copyFileSync, writeFileSync, existsSync } = require('fs');
|
||||
const { spawnSyncAndExitWithoutError } = require('../common/child_process');
|
||||
const { spawnSyncAndAssert, spawnSyncAndExitWithoutError } = require('../common/child_process');
|
||||
const { join } = require('path');
|
||||
const assert = require('assert');
|
||||
|
||||
|
@ -45,14 +45,13 @@ copyFileSync(inputFile, tmpdir.resolve('sea.js'));
|
|||
spawnSyncAndExitWithoutError(
|
||||
process.execPath,
|
||||
['--experimental-sea-config', 'sea-config.json'],
|
||||
{ cwd: tmpdir.path },
|
||||
{});
|
||||
{ cwd: tmpdir.path });
|
||||
|
||||
assert(existsSync(seaPrepBlob));
|
||||
|
||||
generateSEA(outputFile, process.execPath, seaPrepBlob);
|
||||
|
||||
spawnSyncAndExitWithoutError(
|
||||
spawnSyncAndAssert(
|
||||
outputFile,
|
||||
[ '-a', '--b=c', 'd' ],
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue