Skip to content

Conversation

@jaypipes
Copy link
Member

@jaypipes jaypipes commented Oct 7, 2025

Fixes issue #66

·> cat ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml
tests:
 - name: test 1
   exec: echo 42
   assert:
     out:
       is: 24
 - name: test 2
   exec: echo "meaning of life"
   assert:
     out:
       contains: life

·> ./bin/gdt run ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml -v
=== RUN: ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml
--- FAIL: pass-on-fail-issue-65.yaml/test 1 (631.56µs)
    assertion failed: not in: expected stdout to contain 24
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                                    DETAIL
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] using timeout of 10s [plugin default]
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] exec: echo [42]
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] exec: stdout: 42
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] spec/run: single-shot (no retries) ok: false
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
--- PASS: pass-on-fail-issue-65.yaml/test 2 (660.94µs)
FAIL	../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml	1.2925ms
FAIL

Fixes issue gdt-dev#66

```
·> cat ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml
tests:
 - name: test 1
   exec: echo 42
   assert:
     out:
       is: 24
 - name: test 2
   exec: echo "meaning of life"
   assert:
     out:
       contains: life

·> ./bin/gdt run ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml -v
=== RUN: ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml
--- FAIL: pass-on-fail-issue-65.yaml/test 1 (631.56µs)
    assertion failed: not in: expected stdout to contain 24
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                                    DETAIL
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] using timeout of 10s [plugin default]
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] exec: echo [42]
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] exec: stdout: 42
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] spec/run: single-shot (no retries) ok: false
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
--- PASS: pass-on-fail-issue-65.yaml/test 2 (660.94µs)
FAIL	../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml	1.2925ms
FAIL
```

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
@jaypipes jaypipes merged commit 7f8690b into gdt-dev:main Oct 7, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant