Skip to content

Commit

Permalink
Try to use "echo" without "shx" on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jan 1, 2020
1 parent 2ae5484 commit a577863
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/config-file/_config.js
@@ -1,5 +1,5 @@
module.exports = {
description:
'does not replace input with stdin but allows referencing it when using a config file',
command: `shx echo "import {PRINT as p} from './a'; import C from './b'; 0 && fail() || p(C); export {C as value, p as print}" | rollup -c`
command: `echo "import {PRINT as p} from './a'; import C from './b'; 0 && fail() || p(C); export {C as value, p as print}" | rollup -c`
};
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/force-stdin-config-file/_config.js
@@ -1,4 +1,4 @@
module.exports = {
description: 'allows forcing inputs to be replaced with stdin in config files',
command: `shx echo "console.log('STDIN');" | rollup -c --stdin`
command: `echo "console.log('STDIN');" | rollup -c --stdin`
};
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/force-stdin-tty/_config.js
@@ -1,4 +1,4 @@
module.exports = {
description: 'allows forcing stdin input on TTY interfaces via option',
command: `shx echo "console.log('PASS');" | ./wrapper.js -f es --stdin`
command: `echo "console.log('PASS');" | ./wrapper.js -f es --stdin`
};
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/no-dash/_config.js
@@ -1,4 +1,4 @@
module.exports = {
description: 'uses stdin input when piping into Rollup without an input',
command: `shx mkdir -p _actual && shx echo "0 && fail() || console.log('PASS');" | rollup > _actual/out.js`
command: `shx mkdir -p _actual && echo "0 && fail() || console.log('PASS');" | rollup > _actual/out.js`
};
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/no-stdin-config-file/_config.js
@@ -1,4 +1,4 @@
module.exports = {
description: 'allows using "-" as a regular file name via flag',
command: `shx echo "console.log('IGNORED');" | rollup -c --no-stdin`
command: `echo "console.log('IGNORED');" | rollup -c --no-stdin`
};
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/no-stdin-tty/_config.js
Expand Up @@ -2,7 +2,7 @@ const { assertStderrIncludes } = require('../../../../utils.js');

module.exports = {
description: 'does not use input as stdin on TTY interfaces',
command: `shx echo "console.log('PASS');" | ./wrapper.js -f es`,
command: `echo "console.log('PASS');" | ./wrapper.js -f es`,
error(err) {
assertStderrIncludes(err.message, 'You must supply options.input to rollup');
}
Expand Down
2 changes: 1 addition & 1 deletion test/cli/samples/stdin/with-dash/_config.js
@@ -1,4 +1,4 @@
module.exports = {
description: 'stdin input with dash on CLI',
command: `shx mkdir -p _actual && shx echo "0 && fail() || console.log('PASS');" | rollup - > _actual/out.js`
command: `shx mkdir -p _actual && echo "0 && fail() || console.log('PASS');" | rollup - > _actual/out.js`
};

0 comments on commit a577863

Please sign in to comment.