#!/usr/bin/env bash

for i in {1..1000}
do
  echo "loop $i"
  go test -v -count=1 -run TestCommon tests/common/common_test.go --common=true > common_$i.log 2>&1
  if grep -q 'PASS:' common_$i.log; then
      grep 'PASS:' common_$i.log;
      rm common_$i.log
  fi
done
