mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
* Add regression/system test for #4719. * Test for regressions with --help and invalid args. * Handle expected failure properly.
This commit is contained in:
parent
fc097de5ff
commit
791fea43ec
1 changed files with 14 additions and 0 deletions
|
|
@ -80,6 +80,20 @@ CheckHooks() {
|
|||
rm "$HOOK_TEST"
|
||||
}
|
||||
|
||||
# test for regressions of #4719
|
||||
get_num_tmp_files() {
|
||||
ls -1 /tmp | wc -l
|
||||
}
|
||||
num_tmp_files=$(get_num_tmp_files)
|
||||
common --csr / && echo expected error && exit 1 || true
|
||||
common --help
|
||||
common --help all
|
||||
common --version
|
||||
if [ $(get_num_tmp_files) -ne $num_tmp_files ]; then
|
||||
echo "New files or directories created in /tmp!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# We start a server listening on the port for the
|
||||
# unrequested challenge to prevent regressions in #3601.
|
||||
python ./tests/run_http_server.py $http_01_port &
|
||||
|
|
|
|||
Loading…
Reference in a new issue