aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gce_setup/interop_test_runner.sh
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-04-15 11:38:24 -0700
committerGravatar Yang Gao <yangg@google.com>2015-04-15 11:38:24 -0700
commit0f5621d13137085703085a81e241f47f95d95d1d (patch)
tree5fbbaf6467db7c1d40895f22253fac947ca77b3e /tools/gce_setup/interop_test_runner.sh
parent084ef5267213b6b87e913ec5e9af738fde016c8f (diff)
parentdb38bb1d824833a509facbe76a0a8b4d25add99b (diff)
sync and resolve conflict
Diffstat (limited to 'tools/gce_setup/interop_test_runner.sh')
-rwxr-xr-xtools/gce_setup/interop_test_runner.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/gce_setup/interop_test_runner.sh b/tools/gce_setup/interop_test_runner.sh
index 1c6122e9ae..b9f026e545 100755
--- a/tools/gce_setup/interop_test_runner.sh
+++ b/tools/gce_setup/interop_test_runner.sh
@@ -32,6 +32,7 @@ thisfile=$(readlink -ne "${BASH_SOURCE[0]}")
current_time=$(date "+%Y-%m-%d-%H-%M-%S")
result_file_name=interop_result.$current_time.html
echo $result_file_name
+log_link=https://pantheon.corp.google.com/m/cloudstorage/b/stoked-keyword-656-output/o/log_history
main() {
source grpc_docker.sh
@@ -44,11 +45,14 @@ main() {
do
for server in "${servers[@]}"
do
- if grpc_interop_test $test_case grpc-docker-testclients $client grpc-docker-server $server
+ log_file_name=interop_{$test_case}_{$client}_{$server}.txt
+ if grpc_interop_test $test_case grpc-docker-testclients $client grpc-docker-server $server > /tmp/$log_file_name 2>&1
then
- echo " ['$test_case', '$client', '$server', true]," >> /tmp/interop_result.txt
+ gsutil cp /tmp/$log_file_name gs://stoked-keyword-656-output/log_history/$log_file_name
+ echo " ['$test_case', '$client', '$server', true, '<a href="$log_link/$log_file_name">log</a>']," >> /tmp/interop_result.txt
else
- echo " ['$test_case', '$client', '$server', false]," >> /tmp/interop_result.txt
+ gsutil cp /tmp/$log_file_name gs://stoked-keyword-656-output/log_history/$log_file_name
+ echo " ['$test_case', '$client', '$server', false, '<a href="$log_link/$log_file_name">log</a>']," >> /tmp/interop_result.txt
fi
done
done
@@ -60,6 +64,7 @@ main() {
gsutil cp /tmp/interop_result.html gs://stoked-keyword-656-output/result_history/$result_file_name
rm /tmp/interop_result.txt
rm /tmp/interop_result.html
+ rm /tmp/interop*.txt
fi
}