Skip to content

Commit

Permalink
Enable gRPC e2e test in louhi pipeline (#2665)
Browse files Browse the repository at this point in the history
* enabling existing e2e tests for grpc in louhi pipeline

* removing unused flag
  • Loading branch information
anushka567 authored Nov 8, 2024
1 parent d46cd46 commit 810a355
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/cd_scripts/e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ TEST_DIR_NON_PARALLEL=(
# Create a temporary file to store the log file name.
TEST_LOGS_FILE=$(mktemp)
GO_TEST_SHORT_FLAG="-short"
INTEGRATION_TEST_TIMEOUT=180m
function run_non_parallel_tests() {
Expand All @@ -185,7 +184,7 @@ function run_non_parallel_tests() {
local log_file="/tmp/${test_dir_np}_${BUCKET_NAME}.log"
echo $log_file >> $TEST_LOGS_FILE
# Executing integration tests
GODEBUG=asyncpreemptoff=1 go test $test_path_non_parallel -p 1 $GO_TEST_SHORT_FLAG --integrationTest -v --testbucket=$BUCKET_NAME --testInstalledPackage=true -timeout $INTEGRATION_TEST_TIMEOUT > "$log_file" 2>&1
GODEBUG=asyncpreemptoff=1 go test $test_path_non_parallel -p 1 --integrationTest -v --testbucket=$BUCKET_NAME --testInstalledPackage=true -timeout $INTEGRATION_TEST_TIMEOUT > "$log_file" 2>&1
exit_code_non_parallel=$?
if [ $exit_code_non_parallel != 0 ]; then
exit_code=$exit_code_non_parallel
Expand All @@ -207,7 +206,7 @@ function run_parallel_tests() {
local log_file="/tmp/${test_dir_p}_${BUCKET_NAME}.log"
echo $log_file >> $TEST_LOGS_FILE
# Executing integration tests
GODEBUG=asyncpreemptoff=1 go test $test_path_parallel $GO_TEST_SHORT_FLAG -p 1 --integrationTest -v --testbucket=$BUCKET_NAME --testInstalledPackage=true -timeout $INTEGRATION_TEST_TIMEOUT > "$log_file" 2>&1 &
GODEBUG=asyncpreemptoff=1 go test $test_path_parallel -p 1 --integrationTest -v --testbucket=$BUCKET_NAME --testInstalledPackage=true -timeout $INTEGRATION_TEST_TIMEOUT > "$log_file" 2>&1 &
pid=$! # Store the PID of the background process
pids+=("$pid") # Optionally add the PID to an array for later
done
Expand Down

0 comments on commit 810a355

Please sign in to comment.