blob: acb9b045f70f8eb7899916a6cc79f7e01b3e5d1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "error - add same IP twice"
setup
public_address=$(ctdb_get_1_public_address)
dev="${public_address%% *}"
t="${public_address#* }"
ip="${t% *}"
bits="${t#* }"
ok_null
simple_test $public_address
required_result 1 <<EOF
RTNETLINK answers: File exists
Failed to add $ip/$bits on dev $dev
EOF
simple_test $public_address
|