refactor: do early exit and avoid looong if conditional
This commit is contained in:
parent
f3fc1e2f77
commit
49cabb4d95
@ -102,7 +102,11 @@ cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
|||||||
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{without bootstrap}
|
%if %{with bootstrap}
|
||||||
|
# Not do actual check, exiting.
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
LANG=C.UTF-8
|
LANG=C.UTF-8
|
||||||
|
|
||||||
%if %{without aruba}
|
%if %{without aruba}
|
||||||
@ -129,7 +133,10 @@ sed -i spec/rspec/core/example_spec.rb \
|
|||||||
# FIXME seed 33413 sees test failure
|
# FIXME seed 33413 sees test failure
|
||||||
ruby -Ilib -S exe/rspec --seed 1 #33413
|
ruby -Ilib -S exe/rspec --seed 1 #33413
|
||||||
|
|
||||||
%if %{with aruba}
|
%if %{without aruba}
|
||||||
|
# The following lines are for cucumber tests, so exiting.
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
# Mark failing test as broken
|
# Mark failing test as broken
|
||||||
sed -i features/command_line/init.feature \
|
sed -i features/command_line/init.feature \
|
||||||
@ -178,10 +185,6 @@ do
|
|||||||
done
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user