aboutsummaryrefslogtreecommitdiffstats
path: root/build/recovery-test.sh
blob: 46182b88a2c281c3dc030ee560eb6681a5a37460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

fail()
{
  # name=ci-fail-$(date +%s).tar.gz
  # tar -zcvf $name test
  # echo "Verify fail and upload $name"
  # go run build/testtool/testtool.go upload $name dexon-prod-builds
  echo
}

endpoint=http://127.0.0.1:8545

timeout=300

echo "Wait for recovery"
if ! go run build/testtool/testtool.go waitForRecovery $endpoint $timeout; then
  fail
  exit 1
fi