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 20b37a5..f712403 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
 }