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