summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-03 18:27:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-03 18:27:12 -0400
commit45a2997b46596326a4c043d70b205369b97eacb8 (patch)
tree3f15602c5f75e502e129abc1d785b6c784771e02 /devtools
parent8dc10cda8eb4792e4ca7b43df699dc2f2205c4d9 (diff)
downloadgpsd-45a2997b46596326a4c043d70b205369b97eacb8.tar.gz
More agent script simplification.
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/flocktest17
1 files changed, 7 insertions, 10 deletions
diff --git a/devtools/flocktest b/devtools/flocktest
index 57e2185e..bc0091ab 100755
--- a/devtools/flocktest
+++ b/devtools/flocktest
@@ -48,25 +48,23 @@ then
logmessage="A test was already running when you initiated this one."
cd $subdir
else
- (
- echo "Test begins: "`date`
+ echo "Test begins: "`date`
- echo "Site: $site"
- echo "Directory: ${PWD}/${subdir}"
- ) >"flockdriver-${subdir}.log"
+ echo "Site: $site"
+ echo "Directory: ${PWD}/${subdir}"
# Set up or update the repo
if [ ! -d $subdir ]
then
- git clone %(origin)s $subdir >>"flockdriver-${subdir}.log" 2>&1
+ git clone %(origin)s $subdir
cd $subdir
else
cd $subdir;
- git pull >>"../flockdriver-${subdir}.log" 2>&1
+ git pull
fi
# Perform the test
- if ( %(regression)s ) >>"../flockdriver-${subdir}.log" 2>&1
+ if ( %(regression)s )
then
logmessage="Regression test succeeded."
status=0
@@ -75,8 +73,7 @@ else
status=1
fi
- echo "Test ends: "`date` >>"../flockdriver-${subdir}.log" 2>&1
- mv "../flockdriver-${subdir}.log" TEST.LOG
+ echo "Test ends: "`date`
fi
# Here is where we abuse CIA to do our notfications for us.