op: exec: fix dir

Fixes #30

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-01-25 16:18:58 -08:00
parent e10025d688
commit 75fbddf6be
3 changed files with 8 additions and 3 deletions

View File

@@ -7,7 +7,10 @@ package testing
},
{
do: "exec"
args: ["sh", "-c", "echo should not succeed"]
args: ["sh", "-c", """
echo "pwd is: $(pwd)"
[ "$(pwd)" == "/thisisnonexistent" ] || exit 1
"""]
dir: "/thisisnonexistent"
},
]