From 50ddd594501fc5cb3564a30c9682181b759e7145 Mon Sep 17 00:00:00 2001 From: antonio2368 Date: Fri, 26 Mar 2021 12:05:58 +0100 Subject: [PATCH] Fix Centos8 build (#126) * Increase server wait * Use standard shebang for python scripts --- src/auth/reference_modules/example.py | 2 +- src/auth/reference_modules/ldap.py | 2 +- tests/integration/ldap/runner.py | 2 +- tests/integration/telemetry/runner.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/auth/reference_modules/example.py b/src/auth/reference_modules/example.py index e1898f4f6..d40f34892 100755 --- a/src/auth/reference_modules/example.py +++ b/src/auth/reference_modules/example.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/python3 import json import io diff --git a/src/auth/reference_modules/ldap.py b/src/auth/reference_modules/ldap.py index ac090a09c..761db8fd6 100755 --- a/src/auth/reference_modules/ldap.py +++ b/src/auth/reference_modules/ldap.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/python3 import json import io import ssl diff --git a/tests/integration/ldap/runner.py b/tests/integration/ldap/runner.py index 33f575535..f5f8b4c5b 100755 --- a/tests/integration/ldap/runner.py +++ b/tests/integration/ldap/runner.py @@ -73,7 +73,7 @@ class Memgraph: virtualenv_bin = os.path.join(SCRIPT_DIR, "ve3", "bin", "python3") with open(script_file) as fin: data = fin.read() - data = data.replace("/usr/bin/env python3", virtualenv_bin) + data = data.replace("/usr/bin/python3", virtualenv_bin) data = data.replace("/etc/memgraph/auth/ldap.yaml", self._auth_config) with open(self._auth_module, "w") as fout: diff --git a/tests/integration/telemetry/runner.py b/tests/integration/telemetry/runner.py index da958489d..766ba9f43 100755 --- a/tests/integration/telemetry/runner.py +++ b/tests/integration/telemetry/runner.py @@ -45,7 +45,7 @@ def execute_test(**kwargs): server = None if start_server: server = subprocess.Popen(list(map(str, server_args))) - time.sleep(0.1) + time.sleep(0.4) assert server.poll() is None, "Server process died prematurely!" try: