test: lint cue test files

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-03-12 18:12:58 -08:00
parent 657ba7ce34
commit b04c046234
4 changed files with 25 additions and 26 deletions

View File

@@ -13,20 +13,18 @@ test: {
args: ["sh", "-c", """
cat /mnt/test/lol > /out
"""]
mount: "/mnt/test": from: {
#compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo -n "hello world" > /lol
"""]
}
]
}
mount: "/mnt/test": from: #compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo -n "hello world" > /lol
"""]
},
]
},
{
do: "export"

View File

@@ -20,10 +20,10 @@ test: {
{
do: "exec"
args: ["sh", "-c", """
[ -f /out ] || exit 1
# content of /cache/tmp must not exist in this layer
[ ! -f /tmpdir/out ] || exit 1
"""]
[ -f /out ] || exit 1
# content of /cache/tmp must not exist in this layer
[ ! -f /tmpdir/out ] || exit 1
"""]
},
{
do: "export"