Lines Matching refs:fail
19 fail() { function
29 ip -netns $NS link add name $DEV type dummy || fail
31 fail "Can't perform a netns move"
32 ip -netns $test_ns link show dev $DEV >> /dev/null || fail "Device not found after move"
33 ip -netns $test_ns link del $DEV || fail
39 ip -netns $NS link add name $DEV type dummy || fail
41 fail "Performed a netns move with a name conflict"
42 ip -netns $test_ns link show dev $DEV >> /dev/null || fail "Device not found after move"
43 ip -netns $NS link del $DEV || fail
44 ip -netns $test_ns link del $DEV || fail
50 ip -netns $NS link add name $DEV type dummy || fail
52 fail "Can't perform a netns move with rename"
53 ip -netns $test_ns link del $DEV2 || fail
54 ip -netns $test_ns link del $DEV || fail
59 ip -netns $test_ns link add name $DEV type dummy || fail
60 ip -netns $test_ns link property add dev $DEV altname $ALT_NAME || fail
61 ip -netns $NS link add name $DEV2 type dummy || fail
62 ip -netns $NS link property add dev $DEV2 altname $ALT_NAME || fail
65 fail "Moved with alt-name dup"
67 ip -netns $test_ns link del $DEV || fail
68 ip -netns $NS link del $DEV2 || fail
73 ip -netns $NS link add name $DEV type dummy || fail
74 ip -netns $NS link property add dev $DEV altname $ALT_NAME || fail
75 ip -netns $NS link set dev $DEV netns $test_ns || fail
76 ip -netns $test_ns link show dev $ALT_NAME >> /dev/null || fail "Can't find alt-name after move"
78 fail "Can still find alt-name after move"
79 ip -netns $test_ns link del $DEV || fail