From cbefdb775dd1fc7cbc3e3d1022b27fe795b11325 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 8 Jun 2020 18:49:03 +0200 Subject: [PATCH] tests: Sleep for a bit Gosh dangit Travis --- tests/pexpects/exit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pexpects/exit.py b/tests/pexpects/exit.py index 8f3e6aba0..b12e03993 100644 --- a/tests/pexpects/exit.py +++ b/tests/pexpects/exit.py @@ -2,6 +2,7 @@ from pexpect_helper import SpawnedProc import subprocess import sys +import time sp = SpawnedProc() send, sendline, sleep, expect_prompt, expect_re = ( @@ -49,6 +50,8 @@ expect_prompt() # Verify that asking to exit a second time does so. send("exit\r") +# This is cheesy, but on Travis with thread-sanitizer this can be slow enough that the process is still running, so we sleep for a bit. +time.sleep(0.2) proc = subprocess.run( ["pgrep", "-l", "-f", "sleep 11"], stdout=subprocess.PIPE, stderr=subprocess.PIPE )