From 601017813139c92d0eaf3f70a400a225119658a1 Mon Sep 17 00:00:00 2001 From: dubo-dubon-duponey Date: Thu, 14 Jan 2021 18:55:23 -0800 Subject: [PATCH] Adding simple overlay test Signed-off-by: dubo-dubon-duponey --- examples/tests/exec/env/overlay/main.cue | 1 - examples/tests/test.sh | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/tests/exec/env/overlay/main.cue b/examples/tests/exec/env/overlay/main.cue index 60c94a4f..263a628a 100644 --- a/examples/tests/exec/env/overlay/main.cue +++ b/examples/tests/exec/env/overlay/main.cue @@ -14,7 +14,6 @@ bar: string [ "$foo" == "overlay environment" ] || exit 1 """] env: foo: bar - always: true // XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19 dir: "/" }, diff --git a/examples/tests/test.sh b/examples/tests/test.sh index 95cbd77d..55b7f278 100755 --- a/examples/tests/test.sh +++ b/examples/tests/test.sh @@ -82,9 +82,8 @@ test::exec(){ "$dagger" compute "$d"/exec/env/invalid test::one "Exec: env valid" --exit=0 --stdout={} \ "$dagger" compute "$d"/exec/env/valid - # XXX overlays are not wired yet - # test::one "Exec: env with overlay" --exit=0 --stdout={} \ - # "$dagger" compute --input-string 'bar: "overlay environment"' "$d"/exec/env/overlay + test::one "Exec: env with overlay" --exit=0 \ + "$dagger" compute --input 'bar: "overlay environment"' "$d"/exec/env/overlay # XXX broken right now: https://github.com/blocklayerhq/dagger/issues/30 #test::one "Exec: non existent dir" --exit=0 --stdout={} \ # "$dagger" compute "$d"/exec/dir/doesnotexist