d09f7ad0854bb1662a2cdfc4153c4181a5d4c7f4
[doctor.git] / tests / lib / inspectors / sample
1 #!/bin/bash
2
3 function start_inspector_sample {
4     pgrep -f "python inspector.py" && return 0
5     # TODO (r-mibu): make sample inspector use keystone v3 api
6     OS_AUTH_URL=${OS_AUTH_URL/v3/v2.0} \
7     python inspector.py "$INSPECTOR_PORT" > inspector.log 2>&1 &
8 }
9
10 function stop_inspector_sample {
11     pgrep -f "python inspector.py" || return 0
12     kill $(pgrep -f "python inspector.py")
13 }
14
15 function cleanup_inspector_sample {
16     # Noop
17     return
18 }