Commit a9a81c85 authored by Jérome Perrin's avatar Jérome Perrin

nextcloud/test: more output on subprocess errors WIP

parent fcd3ca68
Pipeline #6552 failed with stage
in 0 seconds
...@@ -342,13 +342,16 @@ class TestNextCloudParameters(NextCloudTestCase): ...@@ -342,13 +342,16 @@ class TestNextCloudParameters(NextCloudTestCase):
) )
expected_dict = self.getNextcloudConfig(instance_parameter_dict) expected_dict = self.getNextcloudConfig(instance_parameter_dict)
self.assertEqual(expected_dict, config_dict) self.assertEqual(expected_dict, config_dict)
collabora_config = subprocess.check_output([ try:
php_bin, collabora_config = subprocess.check_output([
occ, php_bin,
"config:app:get", occ,
"richdocuments", "config:app:get",
"wopi_url" "richdocuments",
]) "wopi_url"
])
except subprocess.CalledProcessError as exc:
self.assertFalse((exc.returncode, exc.output))
self.assertEqual(collabora_config.strip(), b'https://my-custom.collabora.net') self.assertEqual(collabora_config.strip(), b'https://my-custom.collabora.net')
stun_config = subprocess.check_output([ stun_config = subprocess.check_output([
php_bin, php_bin,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment