Merge pull request #158 from dagger/fix-mount-tmpfs

Fix mount tmpfs
This commit is contained in:
Sam Alba
2021-03-04 18:32:28 -08:00
committed by GitHub
4 changed files with 16 additions and 7 deletions

View File

@@ -11,10 +11,19 @@ test: {
{
do: "exec"
args: ["sh", "-c", """
echo "NOT SURE WHAT TO TEST YET" > /out
echo ok > /out
echo ok > /tmpdir/out
"""]
dir: "/"
mount: something: "tmpfs"
mount: "/tmpdir": "tmpfs"
},
{
do: "exec"
args: ["sh", "-c", """
[ -f /out ] || exit 1
# content of /cache/tmp must not exist in this layer
[ ! -f /tmpdir/out ] || exit 1
"""]
},
{
do: "export"

View File

@@ -207,13 +207,13 @@ test::local(){
test::mount(){
disable test::one "Mount: tmpfs (FIXME https://github.com/blocklayerhq/dagger/issues/46)" --exit=0 \
test::one "Mount: tmpfs" --exit=0 \
"$dagger" "${DAGGER_BINARY_ARGS[@]}" compute "$d"/mounts/valid/tmpfs
test::one "Mount: cache (FIXME https://github.com/blocklayerhq/dagger/issues/46)" --exit=0 \
test::one "Mount: cache" --exit=0 \
"$dagger" "${DAGGER_BINARY_ARGS[@]}" compute "$d"/mounts/valid/cache
test::one "Mount: component (FIXME https://github.com/blocklayerhq/dagger/issues/46)" --exit=0 --stdout='{"test":"hello world"}' \
test::one "Mount: component" --exit=0 --stdout='{"test":"hello world"}' \
"$dagger" "${DAGGER_BINARY_ARGS[@]}" compute "$d"/mounts/valid/component
disable test::one "Mount: script (FIXME https://github.com/blocklayerhq/dagger/issues/46)" --exit=0 \