Clean up tests

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine
2022-03-08 09:41:34 -07:00
parent 648e508c60
commit cf2538e1b2
3 changed files with 12 additions and 12 deletions

View File

@@ -7,19 +7,18 @@ setup() {
@test "plan/do dynamic tasks - fails to find tasks" {
# Europa loader handles the cwd differently, therefore we need to CD into the tree at or below the parent of cue.mod
cd "$TESTDIR"
run "$DAGGER" "do" -p ./plan/do/dynamic_tasks.cue "test" "b"
run "$DAGGER" do -p ./plan/do/dynamic_tasks.cue test b
# No output because of weirdness with dynamic tasks, which causes it to fail
refute_output
refute_output --partial "actions.test.b"
}
@test "plan/do dynamic tasks - fails to run tasks" {
run "$DAGGER" "do" -p ./plan/do/dynamic_tasks.cue "test"
assert_failure
assert_output --partial 'outputs.files.andrea: contents is not set'
refute_output --partial 'actions.test.b.y'
}
@test "plan/do don't run unspecified tasks" {
run "$DAGGER" "do" -p ./plan/do/do_not_run_unspecified_tasks.cue "test"
run "$DAGGER" "do" -p ./plan/do/do_not_run_unspecified_tasks.cue test
assert_output --partial "actions.test.one.script"
assert_output --partial "actions.test.three.script"
assert_output --partial "actions.test.two.script"