aboutsummaryrefslogtreecommitdiffstats
path: root/test/fail.bats
blob: 7ccbd07e8550e2108b551b12d4b44f3a6716c5ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bats

load test_helper

@test "invoke with target without do-file" {
	run redo this-does-not-exist
	[ $status -ne 0 ]
}

@test "invoke with failing do-file" {
	run redo fail
	sync
	[ $status -ne 0 ] && [ ! -e fail_result ]
}