summaryrefslogtreecommitdiff
path: root/devtools/flocktest
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-03 16:37:05 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-03 16:37:05 -0400
commit8cf718505fbfa509da8bb038f258b954627037bc (patch)
treebd89046175248fbd02bbec7b34bcda2e15ade1aa /devtools/flocktest
parent41b3c3e82f69a72498aa63d200c6e33ced7041db (diff)
downloadgpsd-8cf718505fbfa509da8bb038f258b954627037bc.tar.gz
Factor out project-specific stuff in the agent script to flock-sites.ini
Diffstat (limited to 'devtools/flocktest')
-rwxr-xr-xdevtools/flocktest10
1 files changed, 5 insertions, 5 deletions
diff --git a/devtools/flocktest b/devtools/flocktest
index 193422c4..286cb758 100755
--- a/devtools/flocktest
+++ b/devtools/flocktest
@@ -25,7 +25,7 @@ attribute/value pairs, one per line separated by '='. The following
attributes are recognized:
subdir = a default test directory name (-d)
-exclude = a default exclude set (-x)
+exclude = a default exclusion set (-x)
If you do not specify a subdirectory name either with -d or in the
.flocktest file, the value of $LOGNAME will be used.
@@ -57,8 +57,8 @@ flockdriver = '''
#
# Project-specific configuration
-project=GPSD
-origin="git://git.berlios.de/gpsd"
+project=%(project)s
+origin=%(origin)s
generator="http://gpsd.berlios.de/flockdriver"
# No project-specific stuff below this line
@@ -95,7 +95,7 @@ else
fi
# Perform the test
- if ( ./autogen.sh && make && make check ) >>"../flockdriver-${subdir}.log" 2>&1
+ if ( %(regression)s ) >>"../flockdriver-${subdir}.log" 2>&1
then
logmessage="Regression test succeeded."
status=0
@@ -209,7 +209,7 @@ class TestSite:
ofp = os.popen("ssh -p %s %s 'cat >flockdriver.%s'" \
% (self.config.get("port", "22"), self.me, subdir),
"w")
- ofp.write(flockdriver)
+ ofp.write(flockdriver % self.config)
if ofp.close():
# FIXME: Error handling is unsatisfactory if this failes
print >>sys.stderr, "flocktest: flockdriver copy failed"