summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-01-28 21:40:37 -0500
committerAllan McRae <allan@archlinux.org>2014-01-30 13:12:00 +1000
commitaabb7c3cddf5e97d1b1ebb3548664f1af85c1392 (patch)
tree6a63a4ee459fdb191d02d471232737a6285609ba /test
parent7ae25ac67fd4dd087791be55fa3c4997be7aac52 (diff)
pacman: use exit status 0 for --help and --version
The user requesting usage or version information is not an error. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/pacman001.py2
-rw-r--r--test/pacman/tests/pacman002.py2
-rw-r--r--test/pacman/tests/pacman003.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/pacman/tests/pacman001.py b/test/pacman/tests/pacman001.py
index d467e3f2..1d3a36a9 100644
--- a/test/pacman/tests/pacman001.py
+++ b/test/pacman/tests/pacman001.py
@@ -2,4 +2,4 @@ self.description = "Test command line option (--version)"
self.args = "--version"
-self.addrule("PACMAN_RETCODE=2")
+self.addrule("PACMAN_RETCODE=0")
diff --git a/test/pacman/tests/pacman002.py b/test/pacman/tests/pacman002.py
index c0217259..2add614e 100644
--- a/test/pacman/tests/pacman002.py
+++ b/test/pacman/tests/pacman002.py
@@ -2,4 +2,4 @@ self.description = "Test command line option (--help)"
self.args = "--help"
-self.addrule("PACMAN_RETCODE=2")
+self.addrule("PACMAN_RETCODE=0")
diff --git a/test/pacman/tests/pacman003.py b/test/pacman/tests/pacman003.py
index b5275943..a80e2d61 100644
--- a/test/pacman/tests/pacman003.py
+++ b/test/pacman/tests/pacman003.py
@@ -2,4 +2,4 @@ self.description = "Test command line option (-S --help)"
self.args = "-S --help"
-self.addrule("PACMAN_RETCODE=2")
+self.addrule("PACMAN_RETCODE=0")