File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ if [ "$RSPEC_TEST" = "true" ]; then
100
100
101
101
# Run the tests
102
102
echo " Running rspec unit tests"
103
- time bundle exec rake spec:spec
103
+ time bundle exec rspec " ${DIR} / spec/octocatalog-diff/tests "
104
104
exitcode=$?
105
105
if [ " $exitcode " -ne 0 ]; then RSPEC_EXITCODE=" $exitcode " ; fi
106
106
cat " $OUTPUT_FILE "
@@ -112,7 +112,6 @@ if [ "$RSPEC_TEST" = "true" ]; then
112
112
echo " Running rspec integration tests"
113
113
for file in " ${DIR} " /spec/octocatalog-diff/integration/* _spec.rb; do
114
114
retry=1
115
- exitcode=255
116
115
for try in 1 2 3 ; do
117
116
if [ $retry -eq 1 ]; then
118
117
retry=0
@@ -123,11 +122,12 @@ if [ "$RSPEC_TEST" = "true" ]; then
123
122
RSPEC_EXITCODE=" 255"
124
123
elif [ $exitcode -eq 124 ] && [ $try -lt 3 ]; then
125
124
retry=1
125
+ elif [ $exitcode -ne 0 ]; then
126
+ RSPEC_EXITCODE=" $exitcode "
126
127
fi
127
128
fi
128
129
done
129
130
130
- if [ " $exitcode " -ne 0 ]; then RSPEC_EXITCODE=" $exitcode " ; fi
131
131
cat " $OUTPUT_FILE "
132
132
done
133
133
done
You can’t perform that action at this time.
0 commit comments