diff --git a/tests/plan.bats b/tests/plan.bats index 71810688..7ab5bad0 100644 --- a/tests/plan.bats +++ b/tests/plan.bats @@ -7,5 +7,4 @@ setup() { @test "plan: hello" { run dagger --no-cache --europa up ./plan/hello-europa assert_success - assert_output --partial 'Hello Europa!' } \ No newline at end of file diff --git a/tests/plan/hello-europa/main.cue b/tests/plan/hello-europa/main.cue index f268a18d..466f34f9 100644 --- a/tests/plan/hello-europa/main.cue +++ b/tests/plan/hello-europa/main.cue @@ -6,7 +6,11 @@ import ( ) engine.#Plan & { - actions: sayHello: os.#Container & { - command: "echo Hello Europa!" + actions: { + sayHello: os.#Container & { + command: "echo Hello Europa! > /out.txt" + } + + verify: "Hello Europa!\n" & (os.#File & {from: sayHello, path: "/out.txt"}).contents } }