|
|
|
@ -32,6 +32,7 @@ thisfile=$(readlink -ne "${BASH_SOURCE[0]}") |
|
|
|
|
current_time=$(date "+%Y-%m-%d-%H-%M-%S") |
|
|
|
|
result_file_name=cloud_prod_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 |
|
|
|
@ -42,11 +43,14 @@ main() { |
|
|
|
|
do |
|
|
|
|
for client in "${clients[@]}" |
|
|
|
|
do |
|
|
|
|
if grpc_cloud_prod_test $test_case grpc-docker-testclients $client |
|
|
|
|
log_file_name=cloud_{$test_case}_{$client}.txt |
|
|
|
|
if grpc_cloud_prod_test $test_case grpc-docker-testclients $client > /tmp/$log_file_name 2>&1 |
|
|
|
|
then |
|
|
|
|
echo " ['$test_case', '$client', 'prod', true]," >> /tmp/cloud_prod_result.txt |
|
|
|
|
gsutil cp /tmp/$log_file_name gs://stoked-keyword-656-output/log_history/$log_file_name |
|
|
|
|
echo " ['$test_case', '$client', 'prod', true, '<a href="$log_link/$log_file_name">log</a>']," >> /tmp/cloud_prod_result.txt |
|
|
|
|
else |
|
|
|
|
echo " ['$test_case', '$client', 'prod', false]," >> /tmp/cloud_prod_result.txt |
|
|
|
|
gsutil cp /tmp/$log_file_name gs://stoked-keyword-656-output/log_history/$log_file_name |
|
|
|
|
echo " ['$test_case', '$client', 'prod', false, '<a href="$log_link/$log_file_name">log</a>']," >> /tmp/cloud_prod_result.txt |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
@ -54,11 +58,14 @@ main() { |
|
|
|
|
do |
|
|
|
|
for client in "${clients[@]}" |
|
|
|
|
do |
|
|
|
|
if grpc_cloud_prod_auth_test $test_case grpc-docker-testclients $client |
|
|
|
|
log_file_name=cloud_{$test_case}_{$client}.txt |
|
|
|
|
if grpc_cloud_prod_auth_test $test_case grpc-docker-testclients $client > /tmp/$log_file_name 2>&1 |
|
|
|
|
then |
|
|
|
|
echo " ['$test_case', '$client', 'prod', true]," >> /tmp/cloud_prod_result.txt |
|
|
|
|
gsutil cp /tmp/$log_file_name gs://stoked-keyword-656-output/log_history/$log_file_name |
|
|
|
|
echo " ['$test_case', '$client', 'prod', true, '<a href="$log_link/$log_file_name">log</a>']," >> /tmp/cloud_prod_result.txt |
|
|
|
|
else |
|
|
|
|
echo " ['$test_case', '$client', 'prod', false]," >> /tmp/cloud_prod_result.txt |
|
|
|
|
gsutil cp /tmp/$log_file_name gs://stoked-keyword-656-output/log_history/$log_file_name |
|
|
|
|
echo " ['$test_case', '$client', 'prod', false, '<a href="$log_link/$log_file_name">log</a>']," >> /tmp/cloud_prod_result.txt |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
done |
|
|
|
@ -69,6 +76,7 @@ main() { |
|
|
|
|
gsutil cp /tmp/cloud_prod_result.html gs://stoked-keyword-656-output/result_history/$result_file_name |
|
|
|
|
rm /tmp/cloud_prod_result.txt |
|
|
|
|
rm /tmp/cloud_prod_result.html |
|
|
|
|
rm /tmp/cloud*.txt |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|