Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
71d49151
Commit
71d49151
authored
Mar 09, 2016
by
Holger Levsen
Browse files
let diffoscope test fail by default
parent
287f0dcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/diffoscope_pypi_test.sh
View file @
71d49151
...
@@ -23,11 +23,17 @@ DIFFOSCOPE_IN_PYPI=$(grep "<title>" $TMPPYPI | cut -d ">" -f2- | cut -d ":" -f1
...
@@ -23,11 +23,17 @@ DIFFOSCOPE_IN_PYPI=$(grep "<title>" $TMPPYPI | cut -d ">" -f2- | cut -d ":" -f1
echo
echo
echo
echo
if
[
"
$DIFFOSCOPE_IN_DEBIAN
"
=
"
$DIFFOSCOPE_IN_PYPI
"
]
;
then
if
[
"
$DIFFOSCOPE_IN_DEBIAN
"
=
"
$DIFFOSCOPE_IN_PYPI
"
]
;
then
echo
"Yay. diffoscope in Debian has the same version as on PyPI
.
"
echo
"Yay. diffoscope in Debian has the same version as on PyPI
:
$DIFFOSCOPE_IN_DEBIAN
"
elif
dpkg
--compare-versions
"
$DIFFOSCOPE_IN_DEBIAN
"
gt
"
$DIFFOSCOPE_IN_PYPI
"
;
then
elif
dpkg
--compare-versions
"
$DIFFOSCOPE_IN_DEBIAN
"
gt
"
$DIFFOSCOPE_IN_PYPI
"
;
then
echo
"Fail: diffoscope in Debian:
$DIFFOSCOPE_IN_DEBIAN
"
echo
"Fail: diffoscope in Debian:
$DIFFOSCOPE_IN_DEBIAN
"
echo
"Fail: diffoscope in PyPI:
$DIFFOSCOPE_IN_PYPI
"
echo
"Fail: diffoscope in PyPI:
$DIFFOSCOPE_IN_PYPI
"
exit
1
exit
1
else
echo
"diffoscope in Debian:
$DIFFOSCOPE_IN_DEBIAN
"
echo
"diffoscope in PyPI:
$DIFFOSCOPE_IN_PYPI
"
echo
echo
"Failure is the default action…"
exit
1
fi
fi
# the end
# the end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment