Browse Source

Less fragile way of deciding whether to run old awk test

pull/491/head
Tim Kimber 6 years ago
parent
commit
b785c42bab
2 changed files with 2 additions and 2 deletions
  1. +1
    -0
      docker-compose.yml
  2. +1
    -2
      test/5-old-awk-error.bats

+ 1
- 0
docker-compose.yml View File

@ -88,6 +88,7 @@ services:
GETSSL_HOST: ubuntu18-no-gawk.getssl.test
GETSSL_IP: 10.30.50.6
NGINX_CONFIG: /etc/nginx/sites-enabled/default
TEST_AWK: "yes"
networks:
acmenet:
ipv4_address: 10.30.50.6


+ 1
- 2
test/5-old-awk-error.bats View File

@ -14,8 +14,7 @@ setup() {
@test "Check getssl fails if an old version of awk is installed" {
CONFIG_FILE="getssl-http01.cfg"
# Make sure this test only runs on an image running an old version of awk
awk_version=$(awk -V 2>/dev/null) || true
if [[ "$awk_version" == "" ]]; then
if [[ "$TEST_AWK" != "" ]]; then
setup_environment
init_getssl
create_certificate


Loading…
Cancel
Save