summaryrefslogtreecommitdiff
path: root/test/pre-upload-check.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-01-02 14:04:11 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-01-02 14:04:11 +0100
commit76b8e5a572455fd7360d346a6c70428b1cb5de43 (patch)
tree741f795016742e1658708877cbe44752348988f2 /test/pre-upload-check.py
parentfce726023f703c369ae030684e75ed03c7544d6b (diff)
parentf3224a73ec718a5f4e4404cd716e4b7c2702bb8b (diff)
* test/authReliability/sources.list.good:
- add missing file to make the tests work again * apt-pkg/acquire-item.cc: - fix I-M-S hits with file:// uris * test/pre-upload-check.py: - better error messages - use "apt-get" by default (instead of ../bin/apt-get)
Diffstat (limited to 'test/pre-upload-check.py')
-rwxr-xr-xtest/pre-upload-check.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/pre-upload-check.py b/test/pre-upload-check.py
index 75a726808..ca44ec726 100755
--- a/test/pre-upload-check.py
+++ b/test/pre-upload-check.py
@@ -21,7 +21,8 @@ class testAptAuthenticationReliability(unittest.TestCase):
test if the spec https://wiki.ubuntu.com/AptAuthenticationReliability
is properly implemented
"""
- apt = "../bin/apt-get"
+ #apt = "../bin/apt-get"
+ apt = "apt-get"
def setUp(self):
pass
@@ -68,7 +69,7 @@ class testAptAuthenticationReliability(unittest.TestCase):
] + apt_args,
stdout=stdout, stderr=stderr)
self.assert_(os.path.exists("/var/lib/apt/lists/people.ubuntu.com_%7emvo_apt_auth-test-suit_gpg-package-ok_Release.gpg"),
- "The gpg file disappeared, this should not happen")
+ "The gpg file disappeared after a regular download, this should not happen")
self.assert_(os.path.exists("/var/lib/apt/lists/people.ubuntu.com_%7emvo_apt_auth-test-suit_gpg-package-ok_Packages"),
"The Packages file disappeared, this should not happen")
# test good is still good after non I-M-S hit and a previous files in lists/
@@ -82,7 +83,7 @@ class testAptAuthenticationReliability(unittest.TestCase):
] + apt_args,
stdout=stdout, stderr=stderr)
self.assert_(os.path.exists("/var/lib/apt/lists/people.ubuntu.com_%7emvo_apt_auth-test-suit_gpg-package-ok_Release.gpg"),
- "The gpg file disappeared, this should not happen")
+ "The gpg file disappeared after a I-M-S hit, this should not happen")
self.assert_(os.path.exists("/var/lib/apt/lists/people.ubuntu.com_%7emvo_apt_auth-test-suit_gpg-package-ok_Packages"),
"The Packages file disappeared, this should not happen")
# test good is still good after I-M-S hit