Skip to content
Merged
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
13 changes: 11 additions & 2 deletions tools/aurora-sep/tests/test_m3_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,17 @@ def test_ctrl_c_stops_the_load(self):
self.max_mac("j514c", backlight=True)
p = self.popen("M3_SURVEY_PHASE_S=10\n")
self.wait_for(lambda: len(self.loads()) >= 16, "the load")
os.killpg(p.pid, signal.SIGINT)
out, err = p.communicate(timeout=30)
# Under load bash sometimes drops one SIGINT and the survey runs to the end (exit 0). A user
# presses Ctrl-C again, so send it again.
for _ in range(4):
os.killpg(p.pid, signal.SIGINT)
try:
out, err = p.communicate(timeout=2)
break
except subprocess.TimeoutExpired:
pass
else:
out, err = p.communicate(timeout=30)
self.assertEqual(p.returncode, 130, err)
self.assertIn("interrupted: the load is stopped", err)
self.assertEqual(list(self.out.iterdir()), [])
Expand Down
Loading