Patchwork [2,of,8] tests: fix run-tests "slow test" check

login
register
mail settings
Submitter Augie Fackler
Date Sept. 19, 2017, 4:35 a.m.
Message ID <3c053b1219603bfa7f6d.1505795719@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/24009/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 19, 2017, 4:35 a.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1505794043 14400
#      Tue Sep 19 00:07:23 2017 -0400
# Node ID 3c053b1219603bfa7f6d4e51b7c1753d8f49a421
# Parent  920c56d5f84cd54395a22cce9d0cc79216ed4cf2
tests: fix run-tests "slow test" check

Look for bytes in a set of bytes objects.

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1265,7 +1265,7 @@  class TTest(Test):
         if ret != 0:
             return False, stdout
 
-        if 'slow' in reqs:
+        if b'slow' in reqs:
             self._timeout = self._slowtimeout
         return True, None