• This project
    • Loading...
  • Sign in

홍길동 / onos

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • onos
  • tools
  • test
  • scenarios
  • bin
  • curl-with-retry
  • Ray Milkey's avatar
    STC changes to make smoke test more reliable · 6e968e1d ...
    6e968e1d
    Change-Id: I8ecf2581b12e618bf3fe41baedf5c5decdd77221
    Ray Milkey authored 2015-09-21 10:46:07 -0700
curl-with-retry 267 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/bin/bash

aux=/tmp/stc-$$.log
trap "rm -f $aux 2>/dev/null" EXIT

url=$1


echo curl-with-retry: $*

set -x
for i in {1..3}; do
    curl -f -uonos:rocks ${url} >$aux
    if [ $? = 0 ]; then
        cat $aux
        exit 0
    fi
    sleep 1
done

cat $aux
exit 1