diff --git a/smoke-tests/asset-compute.js b/smoke-tests/asset-compute.js index 077e394..f5e828c 100644 --- a/smoke-tests/asset-compute.js +++ b/smoke-tests/asset-compute.js @@ -13,7 +13,7 @@ try { runCommand('npm i'); console.log('\n=== Step 2: Run Asset Compute tests ==='); - runCommand('./node_modules/mocha/bin/mocha test/index.test.js > consoleoutput.txt'); + runCommand('./node_modules/mocha/bin/mocha test/index.test.js > consoleoutput.txt 2>&1'); console.log('\n=== Step 3: Verify test results ==='); verifyOutput(outputFile, [ diff --git a/smoke-tests/install.js b/smoke-tests/install.js index 738d61a..569c989 100644 --- a/smoke-tests/install.js +++ b/smoke-tests/install.js @@ -12,7 +12,7 @@ const binPath = '../bin/run'; try { console.log('=== Installing app ==='); process.chdir(appDir); - runCommand(`${binPath} app:install dist/app.zip --output install-folder 2>&1 > consoleoutput.txt`); + runCommand(`${binPath} app:install dist/app.zip --output install-folder > consoleoutput.txt 2>&1`); verifyOutput('consoleoutput.txt', ['Install done.']); console.log('\nApp installation successful!'); } catch (error) { diff --git a/smoke-tests/pack.js b/smoke-tests/pack.js index 46701ca..4f70b94 100644 --- a/smoke-tests/pack.js +++ b/smoke-tests/pack.js @@ -12,7 +12,7 @@ const binPath = '../bin/run'; try { console.log('=== Packing app ==='); process.chdir(appDir); - runCommand(`${binPath} app:pack 2>&1 > consoleoutput.txt`); + runCommand(`${binPath} app:pack > consoleoutput.txt 2>&1`); verifyOutput('consoleoutput.txt', ['Packaging done.']); console.log('\nApp packing successful!'); } catch (error) { diff --git a/smoke-tests/utils.js b/smoke-tests/utils.js index b27e499..56ab557 100644 --- a/smoke-tests/utils.js +++ b/smoke-tests/utils.js @@ -168,7 +168,7 @@ function createAndDeployApp(options) { process.chdir(appDir); console.log(`\n=== Step ${stepNum++}: Initialize app ===`); - runCommand(`${binPath} ${initCommand} > consoleoutput.txt`); + runCommand(`${binPath} ${initCommand} > consoleoutput.txt 2>&1`); verifyOutput('consoleoutput.txt', ['App initialization finished']); console.log('\n=== Step 4: Configure environment ==='); @@ -177,7 +177,7 @@ function createAndDeployApp(options) { } console.log(`\n=== Step ${stepNum++}: Deploy app ===`); - runCommand(`${binPath} ${deployCommand} >> consoleoutput.txt`); + runCommand(`${binPath} ${deployCommand} >> consoleoutput.txt 2>&1`); // Verify deployment verifyOutput('consoleoutput.txt', verifyStrings);