Skip to content

Commit

Permalink
Fix file output syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnapolitan committed Jun 18, 2020
1 parent 974ac0e commit cad25af
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ function run_scale_test_130_pods() {
now="pod-130-scale-test-data-$(date +"%m-%d-%Y-%T").csv"
echo $now

cat << EOF > $now
$(date +"%m-%d-%Y-%T")
$((SCALE_UP_DURATION_ARRAY[0])), $((SCALE_DOWN_DURATION_ARRAY[0]))
$((SCALE_UP_DURATION_ARRAY[1])), $((SCALE_DOWN_DURATION_ARRAY[1]))
$((SCALE_UP_DURATION_ARRAY[2])), $((SCALE_DOWN_DURATION_ARRAY[2]))
EOF
echo $(date +"%m-%d-%Y-%T") >> $now
echo $((SCALE_UP_DURATION_ARRAY[0])), $((SCALE_DOWN_DURATION_ARRAY[0])) >> $now
echo $((SCALE_UP_DURATION_ARRAY[1])), $((SCALE_DOWN_DURATION_ARRAY[1])) >> $now
echo $((SCALE_UP_DURATION_ARRAY[2])), $((SCALE_DOWN_DURATION_ARRAY[2])) >> $now

cat $now
aws s3 cp $now s3://cni-scale-test-data
Expand Down

0 comments on commit cad25af

Please sign in to comment.