From 2aa555d25ee1583997a823a76c63d941bbb3e6d1742b0594d52157f641255c3c Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Thu, 6 Feb 2020 16:49:25 +0000 Subject: [PATCH] Disable tests which can not work after https://build.opensuse.org/request/show/768057 OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=112 --- matrix-synapse-test.spec | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/matrix-synapse-test.spec b/matrix-synapse-test.spec index 01b5659..3fd2fb9 100644 --- a/matrix-synapse-test.spec +++ b/matrix-synapse-test.spec @@ -50,22 +50,24 @@ touch %{_sourcedir}/%{pkgname} %check +# Following tests disabled which would need to be run as 'synapse' user which +# we can not do easily (or at all) within RPM # Generate a sample config. -%{python_flavor} -m synapse.app.homeserver \ - --generate-config \ - --server localhost \ - --config-path dummy-homeserver.yaml \ - --report-stats no +#%{python_flavor} -m synapse.app.homeserver \ +# --generate-config \ +# --server localhost \ +# --config-path dummy-homeserver.yaml \ +# --report-stats no # Start synapse and try to register a user (basic smoke-test). # register_new_matrix_user doesn't seem to work inside check so we have to # manually run the module. -synctl start dummy-homeserver.yaml -sleep 2s -%{python_flavor} -m synapse._scripts.register_new_matrix_user \ - http://localhost:8008 \ - --config dummy-homeserver.yaml \ - --admin --user opensuse --password opensuse -synctl stop dummy-homeserver.yaml +#synctl start dummy-homeserver.yaml +#sleep 2s +#%{python_flavor} -m synapse._scripts.register_new_matrix_user \ +# http://localhost:8008 \ +# --config dummy-homeserver.yaml \ +# --admin --user opensuse --password opensuse +#synctl stop dummy-homeserver.yaml %changelog