Compare View
Commits (2)
Showing
2 changed files
Show diff stats
buildroot/buildroot-2016.08.1/board/falinux/prime_oven/rootfs_overlay/root/.falinux/prime_jig/thread_func.sh
@@ -45,7 +45,6 @@ function thread_tty() | @@ -45,7 +45,6 @@ function thread_tty() | ||
45 | THREAD_FUNC_NAME=${FUNCNAME} | 45 | THREAD_FUNC_NAME=${FUNCNAME} |
46 | 46 | ||
47 | sleep 1 | 47 | sleep 1 |
48 | - echo $2 $3 | ||
49 | echo "Send: [${SEND_MESSAGE}]" | 48 | echo "Send: [${SEND_MESSAGE}]" |
50 | echo "${SEND_MESSAGE}" > ${DEV_TTY_PATH} | 49 | echo "${SEND_MESSAGE}" > ${DEV_TTY_PATH} |
51 | 50 | ||
@@ -58,14 +57,11 @@ function thread_rs485() | @@ -58,14 +57,11 @@ function thread_rs485() | ||
58 | echo " @@@ [${FUNCNAME}] @@@" | 57 | echo " @@@ [${FUNCNAME}] @@@" |
59 | echo "" | 58 | echo "" |
60 | 59 | ||
61 | - DEV_RS485_PATH=$2 | ||
62 | - SEND_MESSAGE=$3 | 60 | + DEV_RS485_PATH="$2" |
61 | + SEND_MESSAGE="$3" | ||
63 | 62 | ||
64 | THREAD_FUNC_NAME=${FUNCNAME} | 63 | THREAD_FUNC_NAME=${FUNCNAME} |
65 | 64 | ||
66 | - echo $SEND_MESSAGE $DEV_RS485_PATH | ||
67 | - echo ${SEND_MESSAGE} ${DEV_RS485_PATH} | ||
68 | - | ||
69 | sleep 1 | 65 | sleep 1 |
70 | echo "Send: [${SEND_MESSAGE}]" | 66 | echo "Send: [${SEND_MESSAGE}]" |
71 | echo "${SEND_MESSAGE}" > ${DEV_RS485_PATH} | 67 | echo "${SEND_MESSAGE}" > ${DEV_RS485_PATH} |
@@ -82,7 +78,6 @@ function main() | @@ -82,7 +78,6 @@ function main() | ||
82 | error_check $? ${COMPLETE_TEST_NAME} | 78 | error_check $? ${COMPLETE_TEST_NAME} |
83 | ;; | 79 | ;; |
84 | tty) | 80 | tty) |
85 | - echo $2 $3 | ||
86 | thread_tty $@ | 81 | thread_tty $@ |
87 | error_check $? ${COMPLETE_TEST_NAME} | 82 | error_check $? ${COMPLETE_TEST_NAME} |
88 | ;; | 83 | ;; |
scripts/thread_func.sh
@@ -45,7 +45,6 @@ function thread_tty() | @@ -45,7 +45,6 @@ function thread_tty() | ||
45 | THREAD_FUNC_NAME=${FUNCNAME} | 45 | THREAD_FUNC_NAME=${FUNCNAME} |
46 | 46 | ||
47 | sleep 1 | 47 | sleep 1 |
48 | - echo $2 $3 | ||
49 | echo "Send: [${SEND_MESSAGE}]" | 48 | echo "Send: [${SEND_MESSAGE}]" |
50 | echo "${SEND_MESSAGE}" > ${DEV_TTY_PATH} | 49 | echo "${SEND_MESSAGE}" > ${DEV_TTY_PATH} |
51 | 50 | ||
@@ -58,14 +57,11 @@ function thread_rs485() | @@ -58,14 +57,11 @@ function thread_rs485() | ||
58 | echo " @@@ [${FUNCNAME}] @@@" | 57 | echo " @@@ [${FUNCNAME}] @@@" |
59 | echo "" | 58 | echo "" |
60 | 59 | ||
61 | - DEV_RS485_PATH=$2 | ||
62 | - SEND_MESSAGE=$3 | 60 | + DEV_RS485_PATH="$2" |
61 | + SEND_MESSAGE="$3" | ||
63 | 62 | ||
64 | THREAD_FUNC_NAME=${FUNCNAME} | 63 | THREAD_FUNC_NAME=${FUNCNAME} |
65 | 64 | ||
66 | - echo $SEND_MESSAGE $DEV_RS485_PATH | ||
67 | - echo ${SEND_MESSAGE} ${DEV_RS485_PATH} | ||
68 | - | ||
69 | sleep 1 | 65 | sleep 1 |
70 | echo "Send: [${SEND_MESSAGE}]" | 66 | echo "Send: [${SEND_MESSAGE}]" |
71 | echo "${SEND_MESSAGE}" > ${DEV_RS485_PATH} | 67 | echo "${SEND_MESSAGE}" > ${DEV_RS485_PATH} |
@@ -82,7 +78,6 @@ function main() | @@ -82,7 +78,6 @@ function main() | ||
82 | error_check $? ${COMPLETE_TEST_NAME} | 78 | error_check $? ${COMPLETE_TEST_NAME} |
83 | ;; | 79 | ;; |
84 | tty) | 80 | tty) |
85 | - echo $2 $3 | ||
86 | thread_tty $@ | 81 | thread_tty $@ |
87 | error_check $? ${COMPLETE_TEST_NAME} | 82 | error_check $? ${COMPLETE_TEST_NAME} |
88 | ;; | 83 | ;; |