File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ var runPowershell = function( cmd ) {
213
213
console . log ( "Powershell Data: " + data ) ;
214
214
} ) ;
215
215
child . stderr . on ( "data" , function ( data ) {
216
- console . log ( "Powershell Errors: " + data ) ;
216
+ console . error ( "Powershell Errors: " + data ) ;
217
217
} ) ;
218
218
child . on ( "exit" , function ( ) {
219
219
console . log ( "Powershell Script finished" ) ;
Original file line number Diff line number Diff line change 1
- Try
1
+ npm install
2
+ npm run start-neo4j
3
+ npm test
4
+
5
+ if (-Not ($? )) # failed to execute npm test
2
6
{
3
- npm install
4
- npm run start-neo4j
5
- npm test
7
+ $ErrorFound = $True
6
8
}
7
- Catch [system.exception ]
9
+
10
+ npm run stop-neo4j
11
+
12
+ if ($ErrorFound -eq $True )
8
13
{
9
- " Error found while running tests"
10
- }
11
- Finally
12
- {
13
- npm run stop-neo4j
14
+ exit 1
14
15
}
You can’t perform that action at this time.
0 commit comments