fix: error in truncate command with e2e script (#26443)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ce4ff511fa
Коммит
7f4b007405
@@ -2,6 +2,7 @@
|
|||||||
# SC2034: <variable> appears unused.
|
# SC2034: <variable> appears unused.
|
||||||
# https://www.shellcheck.net/wiki/SC2034
|
# https://www.shellcheck.net/wiki/SC2034
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
|
# shellcheck disable=SC2086,SC2223
|
||||||
|
|
||||||
set -e -u -o pipefail
|
set -e -u -o pipefail
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
@@ -33,9 +34,11 @@ if [ -n "${TM4J_API_KEY:-}" ]; then
|
|||||||
export TM4J_ENVIRONMENT_NAME="${TEST}/${BROWSER}/${SERVER}"
|
export TM4J_ENVIRONMENT_NAME="${TEST}/${BROWSER}/${SERVER}"
|
||||||
case "${SERVER}" in
|
case "${SERVER}" in
|
||||||
cloud)
|
cloud)
|
||||||
export TM4J_FOLDER_ID="2014474" ;;
|
export TM4J_FOLDER_ID="2014474"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
export TM4J_FOLDER_ID="2014475" ;;
|
export TM4J_FOLDER_ID="2014475"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
: ${TEST_CYCLE_LINK_PREFIX:?}
|
: ${TEST_CYCLE_LINK_PREFIX:?}
|
||||||
: ${TM4J_CYCLE_KEY:-}
|
: ${TM4J_CYCLE_KEY:-}
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ EOL
|
|||||||
generate_env_files() {
|
generate_env_files() {
|
||||||
# Generate .env.server
|
# Generate .env.server
|
||||||
mme2e_log "Generating .env.server"
|
mme2e_log "Generating .env.server"
|
||||||
truncate --size=0 .env.server
|
truncate -s 0 .env.server
|
||||||
|
|
||||||
# Setting SERVER-specific variables
|
# Setting SERVER-specific variables
|
||||||
case "$SERVER" in
|
case "$SERVER" in
|
||||||
@@ -287,7 +287,7 @@ generate_env_files() {
|
|||||||
case "$TEST" in
|
case "$TEST" in
|
||||||
cypress)
|
cypress)
|
||||||
mme2e_log "Cypress: Generating .env.cypress"
|
mme2e_log "Cypress: Generating .env.cypress"
|
||||||
truncate --size=0 .env.cypress
|
truncate -s 0 .env.cypress
|
||||||
|
|
||||||
mme2e_generate_envfile_from_var_names >.env.cypress <<-EOF
|
mme2e_generate_envfile_from_var_names >.env.cypress <<-EOF
|
||||||
BRANCH
|
BRANCH
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user