Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit fff6f9d

Browse files
author
ygorelik
committed
Resolving issue #905
1 parent 70e3982 commit fff6f9d

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tests.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function print_msg {
44
echo -e "${MSG_COLOR}*** $(date): tests.sh | $@ ${NOCOLOR}"
55
}
66

7-
function run_exec_test {
7+
function run_cmd {
88
local cmd=$@
99
print_msg "Running command: $cmd"
1010
$cmd
@@ -151,6 +151,9 @@ cd ../cisco-nx-os
151151
${PYTHON_BIN} setup.py sdist
152152
pip_check_install dist/*.tar.gz
153153

154-
print_msg "Running codec sample"
154+
print_msg "Checking ${PYTHON_BIN} environment"
155+
run_cmd ${PIP_BIN} list
156+
157+
print_msg "Running codec sample test"
155158
cd ../core/samples
156159
${PYTHON_BIN} bgp_codec.py

tests_py3.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ cd ../cisco-nx-os
131131
${PYTHON_BIN} setup.py sdist
132132
pip_check_install dist/*.tar.gz
133133

134-
print_msg "Running codec sample"
134+
print_msg "Checking ${PYTHON_BIN} environment"
135+
run_cmd ${PIP_BIN} list
136+
137+
print_msg "Running codec sample test"
135138
cd ../core/samples
136139
${PYTHON_BIN} bgp_codec.py
137-
138-
print_msg "Checking ${PYTHON_BIN} environment"
139-
run_cmd ${PIP_BIN} list --format=columns

0 commit comments

Comments
 (0)