From 18651c07b942abf0060e6478758050dd365619eb Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Wed, 30 Nov 2016 13:08:20 +0000 Subject: Refactor inspectors support code JIRA: DOCTOR-71 Change-Id: I0913d4d0390325cc0cc715572b7525a6bbb795d3 Signed-off-by: Carlos Goncalves --- tests/lib/inspectors/sample | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/lib/inspectors/sample (limited to 'tests/lib/inspectors/sample') diff --git a/tests/lib/inspectors/sample b/tests/lib/inspectors/sample new file mode 100644 index 00000000..cd21a008 --- /dev/null +++ b/tests/lib/inspectors/sample @@ -0,0 +1,16 @@ +#!/bin/bash + +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 +} -- cgit 1.2.3-korg