diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2017-02-27 18:23:21 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-03-06 15:46:57 +0000 |
commit | 6a98d05520f40411ffa95865cfd3d91926f36d2c (patch) | |
tree | f6881e1abd76a65518471dc2209d19513aea19f1 /m4 | |
parent | 24c8971b0b52c10b78b1345dc6a59a82d2698cd3 (diff) |
Disable Metrics support when running tests
We currently use a private DBus session using dbusmock to intercept all
calls to the EOS Metrics DBus API, and avoid sending bogus metrics when
distchecking or running the test suite.
The Metrics API now looks for an environment variable and short circuits
if found, which means we don't need these contortions any more.
This also allows us to drop the dbusmock Python module dependency.
https://phabricator.endlessm.com/T15748
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_python_module_version.m4 | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/m4/ax_python_module_version.m4 b/m4/ax_python_module_version.m4 deleted file mode 100644 index 0ffb7b0..0000000 --- a/m4/ax_python_module_version.m4 +++ /dev/null @@ -1,37 +0,0 @@ -# ============================================================================ -# http://www.gnu.org/software/autoconf-archive/ax_python_module_version.html -# ============================================================================ -# -# SYNOPSIS -# -# AX_PYTHON_MODULE_VERSION(modname, min_version[, python]) -# -# DESCRIPTION -# -# Checks for Python module with at least the given version. -# -# Triggers an error if module is absent or present but at a lower version. -# The third parameter can either be "python" for Python 2 or "python3" for -# Python 3; defaults to Python 3. -# -# LICENSE -# -# Copyright (c) 2015 Endless Mobile, Inc.; contributed by Philip Chimento <philip@endlessm.com> and Kurt von Laven <kurt@endlessm.com> -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 2 - -AC_DEFUN([AX_PYTHON_MODULE_VERSION], [ - AX_PYTHON_MODULE([$1], [required], [$3]) - AC_MSG_CHECKING([for version $2 or higher of $1]) - $PYTHON -c "import sys, $1; from distutils.version import StrictVersion; sys.exit(StrictVersion($1.__version__) < StrictVersion('$2'))" 2> /dev/null - AS_IF([test $? -eq 0], [], [ - AC_MSG_RESULT([no]) - AC_MSG_ERROR([You need at least version $2 of the $1 Python module.]) - ]) - AC_MSG_RESULT([yes]) -]) |