#!/usr/bin/env bash

# Concatinate $RETRY_URNS environment variable array into string
function retry_args {
  echo -n ${RETRY_URNS[*]}
}

# Concatinate $TEST_NAMES into cucumber args
function cucumber_testname_args {
  for TEST_NAME in "${TEST_NAMES[@]}"
  do
    echo -n "-n '^$TEST_NAME\$' "
  done
}

#!/usr/bin/env bash

# Concatinate $RETRY_URNS environment variable array into string
function retry_args {
  echo -n ${RETRY_URNS[*]}
}

# Concatinate $TEST_NAMES into cucumber regexp args
function cucumber_testname_args {
  for TEST_NAME in "${TEST_NAMES[@]}"
  do
    printf -- '-n'
    TEST_NAME=${TEST_NAME// /\\s}
    printf "^$TEST_NAME$"
    printf " " 
  done
}

Transform arguments into cucumber regexps
Transform arguments into cucumber regexps
