summaryrefslogtreecommitdiffstats
path: root/tests/lib/inspector
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/inspector')
-rw-r--r--tests/lib/inspector12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/lib/inspector b/tests/lib/inspector
index 2fb7c409..963e9519 100644
--- a/tests/lib/inspector
+++ b/tests/lib/inspector
@@ -13,11 +13,6 @@ function is_inspector {
}
function start_inspector {
- if ! is_inspector_supported $INSPECTOR_TYPE; then
- die $LINENO"INSPECTOR_TYPE=$INSPECTOR_TYPE is not supported."
- fi
-
- source $TOP_DIR/lib/inspectors/$INSPECTOR_TYPE
start_inspector_$INSPECTOR_TYPE
}
@@ -28,3 +23,10 @@ function stop_inspector {
function cleanup_inspector {
cleanup_inspector_$INSPECTOR_TYPE
}
+
+
+if ! is_inspector_supported $INSPECTOR_TYPE; then
+ die $LINENO"INSPECTOR_TYPE=$INSPECTOR_TYPE is not supported."
+fi
+
+source $TOP_DIR/lib/inspectors/$INSPECTOR_TYPE