Skip to content

Commit 72499a1

Browse files
Neeratyoymfeurer
authored andcommitted
Changing directories for git status (#732)
1 parent 71af3dd commit 72499a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci_scripts/test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ set -e
33
# check status and branch before running the unit tests
44
before="`git status --porcelain -b`"
55
before="$before"
6+
# storing current working directory
7+
curr_dir=`pwd`
68

79
run_tests() {
810
# Get into a temp directory to run test from the installed scikit learn and
@@ -37,6 +39,8 @@ if [[ "$SKIP_TESTS" != "true" ]]; then
3739
run_tests
3840
fi
3941

42+
# changing directory to stored working directory
43+
cd $curr_dir
4044
# check status and branch after running the unit tests
4145
# compares with $before to check for remaining files
4246
after="`git status --porcelain -b`"

0 commit comments

Comments
 (0)