From 1ce9bc9a207e02a4d336243cfd3eb80bab0f94d6 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Thu, 15 Apr 2021 20:25:00 +0100
Subject: [PATCH] tests: Extend timeout for CLI test

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/meson.build | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/meson.build b/tests/meson.build
index 7228ae367..ce0955bf3 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -51,7 +51,7 @@ tests = [
 if get_option('bin')
   tests += [
     {'name': 'check-requirements-cli'},
-    {'name': 'system-info-cli', 'static': true},
+    {'name': 'system-info-cli', 'static': true, 'slow': true},
   ]
 endif
 
@@ -154,6 +154,12 @@ foreach test_info : tests
     deps = [libsteamrt_dep, test_utils_dep]
   endif
 
+  if test_info.get('slow', false)
+    timeout = 60
+  else
+    timeout = 30
+  endif
+
   sources = test_info.get('sources', files(test_name + '.c'))
 
   exe = executable(
@@ -181,9 +187,9 @@ foreach test_info : tests
   endif
 
   if glib_tap_support.found()
-    test(test_name, exe, args : ['--tap'], env : test_env)
+    test(test_name, exe, args : ['--tap'], env : test_env, timeout : timeout)
   else
-    test(test_name, exe, env : test_env)
+    test(test_name, exe, env : test_env, timeout : timeout)
   endif
 endforeach
 
-- 
GitLab