Skip failures when collecting nic setups
The ethtool command can fail when run against some devices in some configurations. This change simply makes the test collections pass no matter the interface configuration. Change-Id: I4475e4dfe13acb4c88444f1f7aa88272bf87f6ee Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
255c8759b8
commit
f0f9f32975
@ -186,9 +186,9 @@ fi
|
|||||||
# Record the active interface configs
|
# Record the active interface configs
|
||||||
for interface in $(ip -o link | awk -F':' '{print $2}'); do
|
for interface in $(ip -o link | awk -F':' '{print $2}'); do
|
||||||
if which ethtool &> /dev/null; then
|
if which ethtool &> /dev/null; then
|
||||||
ethtool -k ${interface} > "${WORKING_DIR}/logs/ethtool-${interface}-cfg.txt"
|
ethtool -k ${interface} > "${WORKING_DIR}/logs/ethtool-${interface}-cfg.txt" || true
|
||||||
else
|
else
|
||||||
echo "No ethtool available" | tee -a "${WORKING_DIR}/logs/no-ethtool.txt"
|
echo "No ethtool available" | tee -a "${WORKING_DIR}/logs/ethtool-${interface}-cfg.txt"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -197,4 +197,3 @@ done
|
|||||||
command gzip --best --recursive "${WORKING_DIR}/logs/"
|
command gzip --best --recursive "${WORKING_DIR}/logs/"
|
||||||
|
|
||||||
echo "#### END LOG COLLECTION ###"
|
echo "#### END LOG COLLECTION ###"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user