Skip to content

config: runtime: tests: consistently indent test definitions #2868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions config/runtime/tests/blktests-ddp.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,19 @@
results:
location: /home/cros/lava
definitions:
- from: inline
name: blktests
path: inline/blktests.yaml
repository:
metadata:
format: Lava-Test Test Definition 1.0
name: cros-tast
run:
steps:
- apt-get update
- apt-get install -y sshpass
- sshpass -p 'DougIsHero' ssh -T -o StrictHostKeyChecking=no doug@$(lava-target-ip) "cd nvidia-blktest && mkdir -p mnt && sudo ./orchestrator.py orchestrator.yml {{ node.id }} {{ api_config.name }} {{ rootfs }}"
- lava-test-case ping_loopback --shell sshpass -p 'DougIsHero' ssh -o StrictHostKeyChecking=no doug@$(lava-target-ip) "ping -c 5 127.0.0.1"
- lava-test-case nvme_056_tcp_ddp --shell sshpass -p 'DougIsHero' ssh -o StrictHostKeyChecking=no doug@$(lava-target-ip) "grep 'pass' nvidia-blktest/nvme_056_tcp_ddp.test"
- sshpass -p 'DougIsHero' ssh -T -o StrictHostKeyChecking=no doug@$(lava-target-ip) "sync && sudo systemctl poweroff"
- sleep 10


- from: inline
name: blktests
path: inline/blktests.yaml
repository:
metadata:
format: Lava-Test Test Definition 1.0
name: cros-tast
run:
steps:
- apt-get update
- apt-get install -y sshpass
- sshpass -p 'DougIsHero' ssh -T -o StrictHostKeyChecking=no doug@$(lava-target-ip) "cd nvidia-blktest && mkdir -p mnt && sudo ./orchestrator.py orchestrator.yml {{ node.id }} {{ api_config.name }} {{ rootfs }}"
- lava-test-case ping_loopback --shell sshpass -p 'DougIsHero' ssh -o StrictHostKeyChecking=no doug@$(lava-target-ip) "ping -c 5 127.0.0.1"
- lava-test-case nvme_056_tcp_ddp --shell sshpass -p 'DougIsHero' ssh -o StrictHostKeyChecking=no doug@$(lava-target-ip) "grep 'pass' nvidia-blktest/nvme_056_tcp_ddp.test"
- sshpass -p 'DougIsHero' ssh -T -o StrictHostKeyChecking=no doug@$(lava-target-ip) "sync && sudo systemctl poweroff"
- sleep 10
18 changes: 9 additions & 9 deletions config/runtime/tests/ltp.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
timeout:
minutes: {{ job_timeout|default(15) }}
definitions:
- repository: https://github.com/kernelci/test-definitions
from: git
revision: kernelci.org
path: automated/linux/ltp/ltp.yaml
name: {{ node.name }}
parameters:
TST_CMDFILES: "{{ tst_cmdfiles|default('') }}"
SKIP_INSTALL: "{{ skip_install }}"
SKIPFILE: {{ skipfile }}
- repository: https://github.com/kernelci/test-definitions
from: git
revision: kernelci.org
path: automated/linux/ltp/ltp.yaml
name: {{ node.name }}
parameters:
TST_CMDFILES: "{{ tst_cmdfiles|default('') }}"
SKIP_INSTALL: "{{ skip_install }}"
SKIPFILE: {{ skipfile }}