diff options
author | Volker Weißmann <volker.weissmann@gmx.de> | 2021-10-14 01:35:14 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2021-10-30 22:26:28 -0400 |
commit | 2c079d855ed87488bdcc6c5c06f59abdb9b85b6c (patch) | |
tree | 62206d581a9ff764d948da94d4478dba85bce765 /test cases/frameworks | |
parent | 3c103fe49ccca848d255b9b00365e74ce35400a4 (diff) | |
download | meson-2c079d855ed87488bdcc6c5c06f59abdb9b85b6c.zip meson-2c079d855ed87488bdcc6c5c06f59abdb9b85b6c.tar.gz meson-2c079d855ed87488bdcc6c5c06f59abdb9b85b6c.tar.bz2 |
Added warning if run_command is called without the check kwarg
Diffstat (limited to 'test cases/frameworks')
-rw-r--r-- | test cases/frameworks/10 gtk-doc/meson.build | 2 | ||||
-rw-r--r-- | test cases/frameworks/11 gir subproject/meson.build | 2 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/meson.build | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test cases/frameworks/10 gtk-doc/meson.build b/test cases/frameworks/10 gtk-doc/meson.build index 43ee929..339e93f 100644 --- a/test cases/frameworks/10 gtk-doc/meson.build +++ b/test cases/frameworks/10 gtk-doc/meson.build @@ -15,7 +15,7 @@ subdir('include') # disable this test unless a bug fix for spaces in pathnames is present # https://bugzilla.gnome.org/show_bug.cgi?id=753145 -result = run_command(gtkdoc, ['--version']) +result = run_command(gtkdoc, ['--version'], check: true) gtkdoc_ver = result.stdout().strip() if gtkdoc_ver == '' gtkdoc_ver = result.stderr().strip() diff --git a/test cases/frameworks/11 gir subproject/meson.build b/test cases/frameworks/11 gir subproject/meson.build index a599ae9..3714daa 100644 --- a/test cases/frameworks/11 gir subproject/meson.build +++ b/test cases/frameworks/11 gir subproject/meson.build @@ -7,7 +7,7 @@ endif python3 = import('python3') py3 = python3.find_python() -if run_command(py3, '-c', 'import gi;').returncode() != 0 +if run_command(py3, '-c', 'import gi;', check: false).returncode() != 0 error('MESON_SKIP_TEST python3-gi not found') endif diff --git a/test cases/frameworks/7 gnome/meson.build b/test cases/frameworks/7 gnome/meson.build index e7ba565..9f86406 100644 --- a/test cases/frameworks/7 gnome/meson.build +++ b/test cases/frameworks/7 gnome/meson.build @@ -12,7 +12,7 @@ endif python3 = import('python3') py3 = python3.find_python() -if run_command(py3, '-c', 'import gi;').returncode() != 0 +if run_command(py3, '-c', 'import gi;', check: false).returncode() != 0 error('MESON_SKIP_TEST python3-gi not found') endif @@ -33,7 +33,7 @@ sys.exit(1) ''' pretend_glib_old = false -res = run_command(py3, '-c', pycode) +res = run_command(py3, '-c', pycode, check: false) if res.returncode() == 0 pretend_glib_old = true endif |