Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
HC Test: add test for vlan sub-interface ipv6 address
[csit.git]
/
resources
/
libraries
/
bash
/
dut_setup.sh
diff --git
a/resources/libraries/bash/dut_setup.sh
b/resources/libraries/bash/dut_setup.sh
index
a5ca415
..
952b82b
100644
(file)
--- a/
resources/libraries/bash/dut_setup.sh
+++ b/
resources/libraries/bash/dut_setup.sh
@@
-23,7
+23,11
@@
function cmd {
echo
echo "[Command_desc] Starting ${0}"
echo
echo "[Command_desc] Starting ${0}"
-cmd 'dpkg -l vpp\*'
+if [ -f "/etc/redhat-release" ]; then
+ cmd 'rpm -qai vpp*'
+else
+ cmd 'dpkg -l vpp\*'
+fi
cmd 'ps aux | grep vpp'
cmd 'ps aux | grep vpp'
@@
-44,8
+48,14
@@
cmd 'sudo dmidecode | grep UUID'
cmd 'lspci -Dnn'
cmd 'lspci -Dnn'
-cmd 'tail -n 50 /var/log/syslog'
+if [ -f "/etc/redhat-release" ]; then
+ cmd 'tail -n 100 /var/log/messages'
+else
+ cmd 'tail -n 100 /var/log/syslog'
+fi
echo "[Command_desc] Adding dpdk-input trace"
cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 100"'
echo "[Command_desc] Adding dpdk-input trace"
cmd 'sudo vpp_api_test <<< "exec trace add dpdk-input 100"'
+echo "[Command_desc] Adding vhost-user-input trace"
+cmd 'sudo vpp_api_test <<< "exec trace add vhost-user-input 100"'
\ No newline at end of file