summaryrefslogtreecommitdiffstats
path: root/tests/lib/inspectors/sample
blob: 75d5c022893982029f7ca385a5234ada8a5e87e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

INSPECTOR_PORT=${INSPECTOR_PORT:-12345}

function start_inspector_sample {
    pgrep -f "python inspector.py" && return 0
    python inspector.py "$INSPECTOR_PORT" > inspector.log 2>&1 &
}

function stop_inspector_sample {
    pgrep -f "python inspector.py" || return 0
    kill $(pgrep -f "python inspector.py")
}

function cleanup_inspector_sample {
    # Noop
    return
}