python-nihtest/ci.fmf
2025-02-12 15:58:05 +01:00

11 lines
332 B
YAML

# vi: ts=2 sw=2 et ft=yaml:
summary: Basic smoke test
execute:
how: tmt
script: |
set -ex
python3 -c 'import nihtest.Command as nc; x = nc.Command("echo", ["hello"]); x.run(); assert(x.stdout[0] == "hello")'
python3 -c 'import nihtest.Command as nc; x = nc.Command("false", []); x.run(); assert(x.exit_code == 1)'