From 78ab36675a394de8af73cdfbea89fb97e733b706 Mon Sep 17 00:00:00 2001 From: Gideon Date: Mon, 15 May 2017 13:47:24 +0200 Subject: [PATCH] Fixed scripts for CIs. 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. --- cmake.sh | 3 +-- ctest.sh | 3 +-- install.sh | 3 +-- make.sh | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/cmake.sh b/cmake.sh index 14f6ce1e5..f91a378b6 100755 --- a/cmake.sh +++ b/cmake.sh @@ -22,5 +22,4 @@ then cmake -DCMAKE_BUILD_TYPE=Debug .. else cmake .. -fi -cd .. \ No newline at end of file +fi \ No newline at end of file diff --git a/ctest.sh b/ctest.sh index 119992546..0d916e1d7 100755 --- a/ctest.sh +++ b/ctest.sh @@ -1,3 +1,2 @@ cd build -ctest --output-on-failure $1 -cd .. \ No newline at end of file +ctest --output-on-failure $1 \ No newline at end of file diff --git a/install.sh b/install.sh index ff8ed3a28..ae9537446 100755 --- a/install.sh +++ b/install.sh @@ -1,3 +1,2 @@ cd build -make install $1 -cd .. \ No newline at end of file +make install $1 \ No newline at end of file diff --git a/make.sh b/make.sh index 0dc3c1b52..62bb11c41 100755 --- a/make.sh +++ b/make.sh @@ -1,3 +1,2 @@ cd build make $1 -cd ..