From 24832d641da420c515955af4cc57ae7f6f8bac90 Mon Sep 17 00:00:00 2001 From: ccremers Date: Thu, 23 Feb 2006 10:49:06 +0000 Subject: [PATCH] - Some compatibility fixes. --- test/scythertest.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/scythertest.py b/test/scythertest.py index 85ea7d0..822ab3b 100755 --- a/test/scythertest.py +++ b/test/scythertest.py @@ -4,6 +4,7 @@ # # Standard tests # +import os import sys from optparse import OptionParser from scythercache import evaluate, scytheroverride, cacheoverride @@ -51,7 +52,8 @@ def parse(scout): # Yield default protocol list (from any other one) def default_protocols(plist): plist.sort() - return ['/home/cas/svn/ecss/protocols/spdl/spdl-defaults.inc'] + plist + defaults = os.path.expanduser("~/svn/ecss/protocols/spdl/misc/spdl-defaults.inc") + return [defaults] + plist # Get the extra parameters def get_extra_parameters(): @@ -109,8 +111,11 @@ def default_arguments(plist,match,bounds): if timer > 0: args = args + " --timer=%i" % timer args = args + " --max-runs=%i --max-length=%i" % (maxruns, maxlength) - matching = "--match=" + str(match) - args = "--plain " + matching + " " + args + + if int(match) > 0: + args += " --untyped" + + args += " --plain" extra = get_extra_parameters() if extra != "":