From 4f3b67785317911b09e4945bc3c97fc19eca5d9c Mon Sep 17 00:00:00 2001 From: gakin <gakin> Date: Mon, 10 Apr 2017 18:12:03 +0000 Subject: [PATCH] SSDM-4584 : test_openbis_sync : Remove prefix from translated entities in harvester graph before comparison. SVN: 38034 --- integration-tests/test_openbis_sync.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/integration-tests/test_openbis_sync.py b/integration-tests/test_openbis_sync.py index d0e1d4d4958..0dd34b266c9 100755 --- a/integration-tests/test_openbis_sync.py +++ b/integration-tests/test_openbis_sync.py @@ -1,6 +1,7 @@ #!/usr/bin/python # encoding=utf8 import os +import re import shutil import settings import systemtest.testcase @@ -191,9 +192,12 @@ class TestCase(systemtest.testcase.TestCase): self.fail("The entity graphs on datasource and harvester are not equal.See %s for details" % os.path.join(destination, "diff.txt")) def readLinesFromFile(self, file): - with open(file, 'rb') as output: - content = output.readlines() - return content + temp = [] + with open(file, 'rb') as f: + for line in f: + #content = output.readlines() + temp.append(re.sub('DS1_', '', line)) + return temp def writeResponseToFile(self, datasource_graph_response, file1): with open(file1, 'wb') as output: -- GitLab