Commit 0cdf0f26 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci: fix test for Alpine

parent 23dc2e8d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -22,7 +22,8 @@ include:
  }

  function assert_defined() {
    if [[ -z "${!1}" ]]
    val=$(eval echo "\$$1")
    if [[ -z "$val" ]]
    then
      log_error "Variable '$1' should be defined"
      TBC_TEST_FAILS=$((TBC_TEST_FAILS + 1))
@@ -30,7 +31,8 @@ include:
  }

  function refute_defined() {
    if [[ "${!1}" ]]
    val=$(eval echo "\$$1")
    if [[ "$val" ]]
    then
      log_error "Variable '$1' should not be defined"
      TBC_TEST_FAILS=$((TBC_TEST_FAILS + 1))