diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2018-01-10 09:42:05 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2018-01-10 09:42:05 +0800 |
commit | f106c5a12724c684d747cf7f309f0ccc8b86cc61 (patch) | |
tree | 43ec5c5aebd19c9ce0838033f5821d89c93f4194 /tests/lib/inspector | |
parent | 9fd701278bf7d8c5b9451491bcb1a92580adc780 (diff) |
remove useless bash code
Change-Id: I530ef7fcdc4f9539517c5a2718e596f77de772a6
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/lib/inspector')
-rw-r--r-- | tests/lib/inspector | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/lib/inspector b/tests/lib/inspector deleted file mode 100644 index 24221642..00000000 --- a/tests/lib/inspector +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -INSPECTOR_TYPE=${INSPECTOR_TYPE:-sample} - -function is_inspector_supported { - local inspector="$1" - [[ -f $TOP_DIR/lib/inspectors/$inspector ]] -} - -function is_inspector { - local inspector="$1" - [[ $inspector == $INSPECTOR_TYPE ]] -} - -function start_inspector { - start_inspector_$INSPECTOR_TYPE -} - -function stop_inspector { - stop_inspector_$INSPECTOR_TYPE -} - -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 |