Skip to content

Commit

Permalink
test: use VERBOSE for non-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Aug 1, 2024
1 parent 631a1f7 commit 0e5fbc3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions tests/CI/install_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ set -x

source CONFIG

if [ -n "$DEBUG" ]
then
# if the DEBUG variable is set and its values is "Yes", we run in DEBUG mode
if [ "$DEBUG" = "Yes" ]; then
echo '==> Running in DEBUG mode'
DEBUG='-ddd'
else
echo '==> Running in non-DEBUG mode'
DEBUG='-dd'
fi

echo -e "*** $(date -u) **** Getting the tests ****\n"
Expand Down
4 changes: 3 additions & 1 deletion tests/Integration/WorkloadManagementSystem/Test_TimeLeft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

echo "\n======> Test_TimeLeft <======\n"

if [[ ! -z "$DEBUG" ]]; then
# if the DEBUG variable is set and its values is "Yes", we run in DEBUG mode
if [ "$DEBUG" = "Yes" ]; then
echo '==> Running in DEBUG mode'
DEBUG='-ddd'
else
echo '==> Running in non-DEBUG mode'
DEBUG='-dd'
fi

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@

echo "\n======> Test_dirac-jobexec <======\n"

if [[ ! -z "$DEBUG" ]]; then
# if the DEBUG variable is set and its values is "Yes", we run in DEBUG mode
if [ "$DEBUG" = "Yes" ]; then
echo '==> Running in DEBUG mode'
DEBUG='-ddd'
else
echo '==> Running in non-DEBUG mode'
DEBUG='-dd'
fi

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
4 changes: 3 additions & 1 deletion tests/Jenkins/dirac_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@

# Def of environment variables:

if [[ "${DEBUG}" ]]; then
# if the DEBUG variable is set and its values is "Yes", we run in DEBUG mode
if [ "$DEBUG" = "Yes" ]; then
echo "==> Running in DEBUG mode"
DEBUG='-ddd'
else
echo "==> Running in non-DEBUG mode"
DEBUG='-dd'
fi

if [[ "$WORKSPACE" ]]; then
Expand Down

0 comments on commit 0e5fbc3

Please sign in to comment.