Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Warren <bmw@users.noreply.github.com>2017-06-01 19:57:27 +0300
committerGitHub <noreply@github.com>2017-06-01 19:57:27 +0300
commit791fea43ecfce8e9d34eedc947389226a2bc1474 (patch)
tree54cfd7b452d72f01dd06891b1b1b16b1191f1f19 /tests/boulder-integration.sh
parentfc097de5ffc9294d59fab674d1f0a400a0d2b2d0 (diff)
Add regression/system test for #4719 (#4739)
* Add regression/system test for #4719. * Test for regressions with --help and invalid args. * Handle expected failure properly.
Diffstat (limited to 'tests/boulder-integration.sh')
-rwxr-xr-xtests/boulder-integration.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/boulder-integration.sh b/tests/boulder-integration.sh
index d86a6fb8c..5c00be054 100755
--- a/tests/boulder-integration.sh
+++ b/tests/boulder-integration.sh
@@ -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 &