chore: Fix the `\n` character preceding `echo` output in shell scripts (#136)

This commit is contained in:
ExE Boss 2018-06-20 00:33:12 +02:00 committed by Rob Wu
parent 80f4caf453
commit c0bf94f2eb
2 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,7 @@
echo "\nTest webextension-polyfill on real browsers" #!/bin/bash
echo "============================================" echo ""
echo "Test webextension-polyfill on real browsers"
echo "==========================================="
export PATH=$PATH:./node_modules/.bin/ export PATH=$PATH:./node_modules/.bin/
@ -7,8 +9,10 @@ export PATH=$PATH:./node_modules/.bin/
## because Chrome doesn't currently support the extensions in headless mode) ## because Chrome doesn't currently support the extensions in headless mode)
export HEADLESS=1 export HEADLESS=1
echo "\nRun smoketests on Chrome" echo ""
echo "Run smoketests on Chrome"
TEST_BROWSER_TYPE=chrome npm run test-integration | tap-nirvana TEST_BROWSER_TYPE=chrome npm run test-integration | tap-nirvana
echo "\nRun smoketests on Firefox" echo ""
TEST_BROWSER_TYPE=firefox npm run test-integration | tap-nirvana echo "Run smoketests on Firefox"
TEST_BROWSER_TYPE=firefox npm run test-integration | tap-nirvana

View File

@ -1,10 +1,13 @@
echo "\nTest webextension-polyfill bundled with webpack" #!/bin/bash
echo ""
echo "Test webextension-polyfill bundled with webpack"
echo "===============================================" echo "==============================================="
webpack --mode production --entry ./test/fixtures/bundle-entrypoint.js --output /tmp/webpack-bundle.js webpack --mode production --entry ./test/fixtures/bundle-entrypoint.js --output /tmp/webpack-bundle.js
TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test
echo "\nTest webextension-polyfill bundled with browserify" echo ""
echo "Test webextension-polyfill bundled with browserify"
echo "==================================================" echo "=================================================="
browserify test/fixtures/bundle-entrypoint.js > /tmp/browserify-bundle.js browserify test/fixtures/bundle-entrypoint.js > /tmp/browserify-bundle.js