Refactor inspectors support code
[doctor.git] / tests / lib / inspectors / sample
1 #!/bin/bash
2
3 function start_inspector_sample {
4     pgrep -f "python inspector.py" && return 0
5     python inspector.py "$INSPECTOR_PORT" > inspector.log 2>&1 &
6 }
7
8 function stop_inspector_sample {
9     pgrep -f "python inspector.py" || return 0
10     kill $(pgrep -f "python inspector.py")
11 }
12
13 function cleanup_inspector_sample {
14     # Noop
15     return
16 }