File: 0004-Increase-timeout-for-timew-config-step-in-tests.patch

package info (click to toggle)
timew 1.9.1%2Bds.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,436 kB
  • sloc: cpp: 30,358; python: 6,829; sh: 706; makefile: 15
file content (26 lines) | stat: -rw-r--r-- 907 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Travis Wrightsman <travis@wrightsman.org>
Date: Sat, 30 Apr 2022 19:53:10 -0700
Subject: Increase timeout for timew config step in tests

Forwarded: not-needed
---
 test/basetest/timew.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/basetest/timew.py b/test/basetest/timew.py
index 2ce4625..55852e4 100644
--- a/test/basetest/timew.py
+++ b/test/basetest/timew.py
@@ -77,10 +77,10 @@ class Timew(object):
         parts.append("doc")
         self.env["MANPATH"] = os.path.sep.join(parts)
 
-    def config(self, var, value):
+    def config(self, var, value, timeout=5):
         """Run setup `var` as `value` in timew config"""
         cmd = (self.timew, ":yes", "config", var, value)
-        return run_cmd_wait(cmd, env=self.env)
+        return run_cmd_wait(cmd, env=self.env, timeout=timeout)
 
     @staticmethod
     def _create_exclusion_interval(interval):