diff options
author | Marc Laukien <marc@zeroc.com> | 2002-01-25 22:02:51 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-01-25 22:02:51 +0000 |
commit | 0bed64a2fa07caeb4fd63b4717f935b1fede97fe (patch) | |
tree | 169f360d9dc3c8884abc8ca62333d036832a3e93 /cpp/test/Slice/errorDetection/run.py | |
parent | Generation of helper types for sequence & dictionary. (diff) | |
download | ice-0bed64a2fa07caeb4fd63b4717f935b1fede97fe.tar.bz2 ice-0bed64a2fa07caeb4fd63b4717f935b1fede97fe.tar.xz ice-0bed64a2fa07caeb4fd63b4717f935b1fede97fe.zip |
removed nonmutating as keyword
Diffstat (limited to 'cpp/test/Slice/errorDetection/run.py')
-rwxr-xr-x | cpp/test/Slice/errorDetection/run.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cpp/test/Slice/errorDetection/run.py b/cpp/test/Slice/errorDetection/run.py index a38d6f39def..aa164760112 100755 --- a/cpp/test/Slice/errorDetection/run.py +++ b/cpp/test/Slice/errorDetection/run.py @@ -26,8 +26,6 @@ for file in os.listdir(directory): if(regex1.search(file)): files.append(file) -status = 0 - files.sort() for file in files: @@ -39,8 +37,7 @@ for file in files: if len(lines1) != len(lines2): print "failed!" - status = 1 - continue + sys.exit(1) regex2 = re.compile(r"^.*(?=" + file + ")") i = 0 @@ -49,10 +46,9 @@ for file in files: line2 = regex2.sub("", lines2[i]).strip() if line1 != line2: print "failed!" - status = 1 - break + sys.exit(1) i = i + 1 else: print "ok" -sys.exit(status) +sys.exit(0) |