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/monitor | |
parent | 9fd701278bf7d8c5b9451491bcb1a92580adc780 (diff) |
remove useless bash code
Change-Id: I530ef7fcdc4f9539517c5a2718e596f77de772a6
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/lib/monitor')
-rw-r--r-- | tests/lib/monitor | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/lib/monitor b/tests/lib/monitor deleted file mode 100644 index 6b804ec2..00000000 --- a/tests/lib/monitor +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -MONITOR_TYPE=${MONITOR_TYPE:-sample} - -function is_monitor_supported { - local monitor="$1" - [[ -f $TOP_DIR/lib/monitors/$monitor/$monitor ]] -} - -function is_monitor { - local monitor="$1" - [[ $monitor == $MONITOR_TYPE ]] -} - -function start_monitor { - start_monitor_$MONITOR_TYPE -} - -function stop_monitor { - stop_monitor_$MONITOR_TYPE -} - -function cleanup_monitor { - cleanup_monitor_$MONITOR_TYPE -} - -if ! is_monitor_supported $MONITOR_TYPE; then - die $LINENO "MONITOR_TYPE=$MONITOR_TYPE is not supported." -fi - -source $TOP_DIR/lib/monitors/$MONITOR_TYPE/$MONITOR_TYPE |