]> git.proxmox.com Git - mirror_ovs.git/commit
ovsdb-cluster.at: Fix infinite loop in torture tests.
authorIlya Maximets <i.maximets@ovn.org>
Thu, 26 Nov 2020 00:43:57 +0000 (01:43 +0100)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 4 Dec 2020 19:00:36 +0000 (20:00 +0100)
commit35454eba79a42a7374bb2572f1348abe4cc92318
tree5de20d80ce6ec35be8e970be4da713a323149f7b
parent71d0c0d8b4d8bf01cb5367aabc5ceadba1f8ce61
ovsdb-cluster.at: Fix infinite loop in torture tests.

For some reason, while running cluster torture tests in GitHub Actions
workflow, failure of 'echo' command doesn't fail the loop and subshell
never exits, but keeps infinitely printing errors after breaking from
the loop on the right side of the pipeline:

  testsuite: line 8591: echo: write error: Broken pipe

Presumably, that is caused by some shell configuration option, but
I have no idea which one and I'm not able to reproduce locally with
shell configuration options provided in GitHub documentation.
Let's just add an explicit 'exit' on 'echo' failure.  This will
guarantee exit from the loop and the subshell regardless of
configuration.

Fixes: 0f03ae3754ec ("ovsdb: Improve timing in cluster torture test.")
Acked-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
tests/ovsdb-cluster.at