Skip to content

Commit

Permalink
system-userspace-macros: Check the exit code of ethtool.
Browse files Browse the repository at this point in the history
If the ethtool command is not available on the system we should fail,
since the userspace testsuite cannot work properly without disabling
offloads.

Also, add ethtool to the list of installed packages on Vagrantfile, to
ensure that offloads don't cause test failures in the vagrant VM when
the kernel is updated.

Fixes: ddcf96d ("system-tests: Disable offloads in userspace tests.")
Reported-by: Joe Stringer <[email protected]>
Signed-off-by: Daniele Di Proietto <[email protected]>
Acked-by: Joe Stringer <[email protected]>
  • Loading branch information
ddiproietto committed Aug 5, 2016
1 parent 5b1c9c7 commit e4f2c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dnf -y install autoconf automake openssl-devel libtool \
python-twisted-core python-zope-interface \
desktop-file-utils groff graphviz rpmdevtools nc \
wget python-six pyftpdlib checkpolicy selinux-policy-devel \
libcap-ng-devel kernel-devel-`uname -r`
libcap-ng-devel kernel-devel-`uname -r` ethtool
echo "search extra update built-in" >/etc/depmod.d/search_path.conf
cd /vagrant
./boot.sh
Expand Down
2 changes: 1 addition & 1 deletion tests/system-userspace-macros.at
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ m4_define([OVS_TRAFFIC_VSWITCHD_STOP],
# This is a workaround, and should be removed when offloads are properly
# supported in netdev-linux.
m4_define([CONFIGURE_VETH_OFFLOADS],
[ethtool -K $1 tx off]
[AT_CHECK([ethtool -K $1 tx off], [0], [ignore])]
)

# CHECK_CONNTRACK()
Expand Down

0 comments on commit e4f2c62

Please sign in to comment.