diff --git a/dev_init.sh b/dev_init.sh index 53f9c27b..d35d83d2 100755 --- a/dev_init.sh +++ b/dev_init.sh @@ -42,6 +42,8 @@ copy_file(){ mkdir -p ${OBDIAG_HOME}/gather if [ -d "${WORK_DIR}/handler/checker/tasks" ]; then cp -rf ${WORK_DIR}/handler/checker/tasks ${OBDIAG_HOME}/check/ + cp -rf ${WORK_DIR}/handler/checker/tasks/obproxy_check_package.yaml ${OBDIAG_HOME}/check/ + cp -rf ${WORK_DIR}/handler/checker/tasks/observer_check_package.yaml ${OBDIAG_HOME}/check/ fi if [ -d "${WORK_DIR}/handler/gather/tasks" ]; then cp -rf ${WORK_DIR}/handler/gather/tasks ${OBDIAG_HOME}/gather/ @@ -51,8 +53,8 @@ copy_file(){ cp -rf ${WORK_DIR}/example ${OBDIAG_HOME}/ fi - if [ -d "${WORK_DIR}/rca" ]; then - cp -rf ${WORK_DIR}/rca ${OBDIAG_HOME}/ + if [ -d "${WORK_DIR}/handler/rca/scene" ]; then + cp -rf ${WORK_DIR}/handler/rca/scene ${OBDIAG_HOME}/rca fi } diff --git a/obcmd.py b/diag_cmd.py similarity index 99% rename from obcmd.py rename to diag_cmd.py index 1e54e4e9..7522713b 100644 --- a/obcmd.py +++ b/diag_cmd.py @@ -11,7 +11,7 @@ # See the Mulan PSL v2 for more details. """ -@file: cmd.py +@file: diag_cmd.py @desc: """ diff --git a/main.py b/main.py index a11c9482..f3434a45 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ """ import sys -from obcmd import MainCommand +from diag_cmd import MainCommand from stdio import IO ROOT_IO = IO(1)