Skip to content

Commit

Permalink
Fixed scripts for CIs.
Browse files Browse the repository at this point in the history
The `cd ..` was likely responsible for the ctest script returning 0 even if tests failed.
The `cd ..` is not needed as exiting the sub-shell automatically returns to the original directory.
  • Loading branch information
GPMueller committed May 15, 2017
1 parent 0a8721c commit 78ab366
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions cmake.sh
Expand Up @@ -22,5 +22,4 @@ then
cmake -DCMAKE_BUILD_TYPE=Debug ..
else
cmake ..
fi
cd ..
fi
3 changes: 1 addition & 2 deletions ctest.sh
@@ -1,3 +1,2 @@
cd build
ctest --output-on-failure $1
cd ..
ctest --output-on-failure $1
3 changes: 1 addition & 2 deletions install.sh
@@ -1,3 +1,2 @@
cd build
make install $1
cd ..
make install $1
1 change: 0 additions & 1 deletion make.sh
@@ -1,3 +1,2 @@
cd build
make $1
cd ..

0 comments on commit 78ab366

Please sign in to comment.