Commit c93b3c37 authored by Jérome Perrin's avatar Jérome Perrin

software/theia/test: fix a flaky test

This test checks that running `slapos node software` command on theia
shell starts installing software, but this command might get an error
like:

    process started, but another slapos process is aleady running with pid 2656158, exiting

this happened for example with https://erp5js.nexedi.net/#/test_result_module/20240911-ED8B4BF9/60
parent ed6531df
......@@ -222,7 +222,11 @@ class TestTheia(TheiaTestCase):
'https://lab.nexedi.com/nexedi/slapos/raw/1.0.144/software/helloworld/software.cfg'
)
process.sendline('slapos node software')
# check slapos node software, but first stop slapos-node-software that might have
# been started by slapos-node-auto
process.sendline(
'supervisorctl -c ~/srv/runner/etc/supervisord.conf stop slapos-node-software'
' && slapos node software')
process.expect(
'Installing software release https://lab.nexedi.com/nexedi/slapos/raw/1.0.144/software/helloworld/software.cfg'
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment