From b06f77699cb16724a3917af919f26b923f9530d0 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Mon, 6 May 2002 20:54:29 +0000 Subject: fix --- cpp/test/Slice/errorDetection/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/test/Slice/errorDetection/run.py') diff --git a/cpp/test/Slice/errorDetection/run.py b/cpp/test/Slice/errorDetection/run.py index aa164760112..8e4551f4730 100755 --- a/cpp/test/Slice/errorDetection/run.py +++ b/cpp/test/Slice/errorDetection/run.py @@ -12,6 +12,7 @@ import os, sys, re for toplevel in [".", "..", "../..", "../../..", "../../../.."]: + toplevel = os.path.normpath(toplevel) if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): break else: @@ -31,10 +32,10 @@ for file in files: print file + "...", - stdin, stdout, stderr = os.popen3(slice2cpp + " " + os.path.join(directory, file)) + command = slice2cpp + " " + os.path.join(directory, file); + stdin, stdout, stderr = os.popen3(command) lines1 = stderr.readlines() lines2 = open(os.path.join(directory, regex1.sub(".err", file)), "r").readlines() - if len(lines1) != len(lines2): print "failed!" sys.exit(1) -- cgit v1.2.3