testsuite: Don't create .test files for flaky or failing tests
authorSimon McVittie <smcv@debian.org>
Wed, 23 Nov 2022 21:26:50 +0000 (21:26 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 3 Jan 2023 12:45:21 +0000 (12:45 +0000)
These tests can be run manually, but are not suitable for use as an
acceptance test, so let's not make frameworks like Debian's autopkgtest
run these when they run ginsttest-runner in the most obvious way.

Signed-off-by: Simon McVittie <smcv@debian.org>
Applied-upstream: 4.9.2, commit:94b57a967c492ab18df8142557710ba0b1a02cee

Gbp-Pq: Name testsuite-Don-t-create-.test-files-for-flaky-or-failing-t.patch

testsuite/gdk/meson.build
testsuite/gtk/meson.build

index 7aa0cf6668fac82ce60a74e1cf6b20e6e9e4dcbf..3236ce7d5dbaa9d22eaec9d48be2789a192891ad 100644 (file)
@@ -83,6 +83,12 @@ endforeach
 if get_option('install-tests')
   foreach t : tests
     test_name = t.get('name')
+    suites = t.get('suites', [])
+
+    if suites.contains('flaky') or suites.contains('failing')
+      continue
+    endif
+
     test_cdata = configuration_data()
     test_cdata.set('testexecdir', testexecdir)
     test_cdata.set('test', test_name)
index 926ed060e5f9ad4788981de5952e7c77d741df84..bc92fa93f07806391de71161b1f8041e8590877f 100644 (file)
@@ -291,6 +291,12 @@ endforeach
 if get_option('install-tests')
   foreach t : tests
     test_name = t.get('name')
+    suites = t.get('suites', [])
+
+    if suites.contains('flaky') or suites.contains('failing')
+      continue
+    endif
+
     conf = configuration_data()
     conf.set('testexecdir', testexecdir)
     conf.set('test', test_name)