diff --git a/support/testing/tests/package/test_xen.py b/support/testing/tests/package/test_xen.py index f680187db0..e5eaf3c115 100644 --- a/support/testing/tests/package/test_xen.py +++ b/support/testing/tests/package/test_xen.py @@ -73,10 +73,6 @@ class TestXen(infra.basetest.BRTest): self.emulator.boot(arch="aarch64", options=qemu_opts) self.emulator.login() - # Avoid double-cooking the terminal, otherwise the test infrastructure - # would not be able to retrieve e.g. return codes properly. - self.assertRunOk("stty raw") - # Verify that we are indeed running under Xen. self.assertRunOk("xl info") @@ -92,9 +88,6 @@ class TestXen(infra.basetest.BRTest): self.emulator.qemu.sendline("xl create -c /etc/xen/dom1.cfg") self.emulator.login() - # Avoid double-cooking the terminal for dom1, too. - self.assertRunOk("stty raw") - # Check that we are not talking to dom0 anymore. uuid = self.get_dom_uuid() self.assertNotEqual(uuid, dom0_uuid, "Unexpected dom0 UUID") diff --git a/support/testing/tests/package/test_xen/overlay/etc/profile.d/stty-raw.sh b/support/testing/tests/package/test_xen/overlay/etc/profile.d/stty-raw.sh new file mode 100644 index 0000000000..3502579d80 --- /dev/null +++ b/support/testing/tests/package/test_xen/overlay/etc/profile.d/stty-raw.sh @@ -0,0 +1,3 @@ +# Avoid double-cooking the terminal, otherwise the test infrastructure +# would not be able to retrieve return codes properly. +stty raw