diff options
author | Darshit Shah <darnir@gnu.org> | 2020-12-28 01:54:16 +0100 |
---|---|---|
committer | Darshit Shah <darnir@gnu.org> | 2020-12-28 01:54:16 +0100 |
commit | 010cb79b4314f501ef3968d7e1fee6bd9c13dc17 (patch) | |
tree | 36b848f1f4f875bdb86b4d3f6afd788563be417f /testenv/Test-pinnedpubkey-pem-fail-https.py | |
parent | 7c4d053902ee864ed536e3036e48bac92dd68ceb (diff) | |
download | wget-010cb79b4314f501ef3968d7e1fee6bd9c13dc17.tar.gz |
Fix usage of Magic number of tests
testenv/test/base_test.py: Add new variable SKIP_TEST
testenv/Test--https-crl.py: Use SKIP_TEST instead of magic number
testenv/Test--https.py: Same
testenv/Test-hsts.py: Same
testenv/Test-no_proxy-env.py: Same
testenv/Test-pinnedpubkey-der-https.py: Same
testenv/Test-pinnedpubkey-der-no-check-https.py: Same
testenv/Test-pinnedpubkey-hash-https.py: Same
testenv/Test-pinnedpubkey-hash-no-check-fail-https.py: Same
testenv/Test-pinnedpubkey-pem-fail-https.py: Same
testenv/Test-pinnedpubkey-pem-https.py: Same
Diffstat (limited to 'testenv/Test-pinnedpubkey-pem-fail-https.py')
-rwxr-xr-x | testenv/Test-pinnedpubkey-pem-fail-https.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testenv/Test-pinnedpubkey-pem-fail-https.py b/testenv/Test-pinnedpubkey-pem-fail-https.py index 130fca7e..c6f7f1e0 100755 --- a/testenv/Test-pinnedpubkey-pem-fail-https.py +++ b/testenv/Test-pinnedpubkey-pem-fail-https.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 from sys import exit from test.http_test import HTTPTest -from test.base_test import HTTP, HTTPS +from test.base_test import HTTPS, SKIP_TEST from misc.wget_file import WgetFile import os @@ -9,7 +9,7 @@ import os This test ensures that Wget can download files from HTTPS Servers """ if os.getenv('SSL_TESTS') is None: - exit (77) + exit (SKIP_TEST) ############# File Definitions ############################################### File1 = "Would you like some Tea?" |