summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/UNIT/eventscripts/01.reclock.init.003.sh
blob: a8b6abdf5b575586100b26d4edfd9a8e9a1920a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

. "${TEST_SCRIPTS_DIR}/unit.sh"

define_test "set to default lock file, directory is created"

setup

dir=$(dirname "$CTDB_RECOVERY_LOCK")

# Ensure directory doesn't exist before
required_result 1 ""
unit_test test -d "$dir"

ok_null
simple_test

# Ensure directory exists after
ok_null
unit_test test -d "$dir"