Skip to content

Commit

Permalink
Verbose output on CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecosta90 committed Nov 18, 2023
1 parent 5298bac commit 6523a56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/include.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import glob
import os
import logging

MEMTIER_BINARY = os.environ.get("MEMTIER_BINARY", "memtier_benchmark")
TLS_CERT = os.environ.get("TLS_CERT", "")
TLS_KEY = os.environ.get("TLS_KEY", "")
TLS_CACERT = os.environ.get("TLS_CACERT", "")
TLS_PROTOCOLS = os.environ.get("TLS_PROTOCOLS", "")
VERBOSE = bool(int(os.environ.get("VERBOSE","0")))


def ensure_tls_protocols(master_nodes_connections):
Expand Down Expand Up @@ -35,6 +37,9 @@ def assert_minimum_memtier_outcomes(config, env, memtier_ok, overall_expected_re
debugPrintMemtierOnError(config, env)

def add_required_env_arguments(benchmark_specs, config, env, master_nodes_list):
if VERBOSE:
logging.basicConfig(level=logging.DEBUG)

# if we've specified TLS_PROTOCOLS ensure we configure it on redis
master_nodes_connections = env.getOSSMasterNodesConnectionList()
ensure_tls_protocols(master_nodes_connections)
Expand Down

0 comments on commit 6523a56

Please sign in to comment.