File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,16 @@ FULL_SCRIPT_PATH="$PWD/index.js"
18
18
EXPECTED_VERSION_STRING=" at $PWD /testproject/node_modules/" # somewhere in there
19
19
EXPECTED_GLOB_STRING=" ran clang-format on 1 file" # somewhere in there
20
20
21
- pushd $PWD /testproject
22
- npm install & > /dev/null # Should give us a local clang-format, version doesn't really matter.
23
- VERSION=` /usr/bin/env node $FULL_SCRIPT_PATH -version`
24
- if [[ $VERSION != * " $EXPECTED_VERSION_STRING " * ]]; then
25
- echo " [FAIL] Expected string containing $EXPECTED_VERSION_STRING , got $VERSION " >&2
26
- exit 1
27
- fi
28
- echo " [PASS] no file argument uses working directory" >&2
29
- popd
21
+ (
22
+ cd $PWD /testproject
23
+ npm install & > /dev/null # Should give us a local clang-format, version doesn't really matter.
24
+ VERSION=` /usr/bin/env node $FULL_SCRIPT_PATH -version`
25
+ if [[ $VERSION != * " $EXPECTED_VERSION_STRING " * ]]; then
26
+ echo " [FAIL] Expected string containing $EXPECTED_VERSION_STRING , got $VERSION " >&2
27
+ exit 1
28
+ fi
29
+ echo " [PASS] no file argument uses working directory" >&2
30
+ )
30
31
31
32
VERSION=` /usr/bin/env node $FULL_SCRIPT_PATH -version $PWD /testproject/lib/test.js`
32
33
if [[ $VERSION != * " $EXPECTED_VERSION_STRING " * ]]; then
You can’t perform that action at this time.
0 commit comments