]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
selftests: forwarding: mirror_vlan: Uninstall trap
authorPetr Machata <petrm@mellanox.com>
Thu, 31 May 2018 22:37:44 +0000 (00:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 14:08:44 +0000 (10:08 -0400)
Instead of installing a trap before tests run and uninstalling it after
they run, mirror_vlan.sh installs it twice due to a typo. Fix the typo.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_vlan.sh

index 20b37a53657e07dee45a46ddcbde11da44d0f88e..f7124038b6c13724e9ef439cbfd0c94e969ea296 100755 (executable)
@@ -108,7 +108,7 @@ test_all()
 
        tests_run
 
-       trap_install $h3 ingress
+       trap_uninstall $h3 ingress
        slow_path_trap_uninstall $swp1 egress
        slow_path_trap_uninstall $swp1 ingress
 }