lava: Set default shell for submitted jobs
authorKienan Stewart <kstewart@efficios.com>
Tue, 23 May 2023 18:49:04 +0000 (14:49 -0400)
committerKienan Stewart <kstewart@efficios.com>
Wed, 24 May 2023 12:55:30 +0000 (08:55 -0400)
commit9bc7deb861049b1805f0a8494cffe53044a7b988
tree5f825eaaae745b3a160cbf40134c00e55dec83c5
parent005e75b441f41f3f7158e6fd732b32a309275f2f
lava: Set default shell for submitted jobs

With the older lava-server installation on lava-master-02, the default
shell was changed by setting `lava_test_sh_cmd` in the base device
type template file
`/etc/lava-server/dispatcher-config/device-types/base.jinja2`.

Rather than setting the value for all devices by default in global
configuration, I think it is best to make the expected shell explicit
in our submitted job configuration. The SHELL environment variable is
read and used by the `lava_dispatcher/lava_test_shell/lava-test-shell`
script to set the interpreter for the tests.

Note: It doesn't seem possible to update the SHELL or
`lava_test_sh_cmd` on a per-test basis.

Change-Id: I7a02f1e76cfc50dfea7925d27609533e831bd221
scripts/system-tests/template_lava_job.jinja2
This page took 0.024238 seconds and 4 git commands to generate.