engine: Make paths relative to the CUE file they're defined in
Fixes #1309 Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
committed by
Sam Alba
parent
ec69734c51
commit
9c81a155c9
@@ -44,11 +44,18 @@ setup() {
|
||||
"$DAGGER" --europa up ./plan/inputs/directories/exists.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories relative directories" {
|
||||
cd "$TESTDIR"
|
||||
cd "$TESTDIR"/plan/inputs
|
||||
|
||||
"$DAGGER" --europa up ./directories/exists.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories not exists" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/inputs/directories/not_exists.cue
|
||||
assert_failure
|
||||
assert_output --partial 'tests/fasdfsdfs" does not exist'
|
||||
assert_output --partial 'fasdfsdfs" does not exist'
|
||||
}
|
||||
|
||||
@test "plan/inputs/directories conflicting values" {
|
||||
@@ -63,6 +70,11 @@ setup() {
|
||||
"$DAGGER" --europa up ./plan/inputs/secrets/exec.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/secrets exec relative" {
|
||||
cd "$TESTDIR"
|
||||
"$DAGGER" --europa up ./plan/inputs/secrets/exec.cue
|
||||
}
|
||||
|
||||
@test "plan/inputs/secrets invalid command" {
|
||||
cd "$TESTDIR"
|
||||
run "$DAGGER" --europa up ./plan/inputs/secrets/invalid_command.cue
|
||||
@@ -78,6 +90,14 @@ setup() {
|
||||
assert [ -f "./out/test" ]
|
||||
}
|
||||
|
||||
@test "plan/outputs relative paths" {
|
||||
cd "$TESTDIR"/plan
|
||||
|
||||
rm -f "./outputs/out/test"
|
||||
"$DAGGER" --europa up ./outputs/outputs.cue
|
||||
assert [ -f "./outputs/out/test" ]
|
||||
}
|
||||
|
||||
@test "plan/platform" {
|
||||
cd "$TESTDIR"
|
||||
|
||||
|
Reference in New Issue
Block a user