Skip to content

Commit

Permalink
Add test of rd-jobs purge fixes #207
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Oct 19, 2012
1 parent d7081f1 commit 89535fc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,27 @@ if [ 0 == $? ] ; then
exit 2
fi

#purge the jobs
$RDECK_BASE/tools/bin/rd-jobs purge -p test -g test > $DIR/load.out
if [ 0 != $? ] ; then
echo Failed to purge jobs: $!
exit 2
fi
cat $DIR/load.out



$RDECK_BASE/tools/bin/rd-jobs load -f $DIR/test.jobs.expanded.xml > $DIR/load.out
if [ 0 != $? ] ; then
echo Failed to load jobs: $!
exit 2
fi
grep -q Failed $DIR/load.out
if [ 0 == $? ] ; then
echo Failed to load some job : $!
exit 2
fi

rm $DIR/load.out
rm $DIR/test.jobs.expanded.xml

Expand Down

0 comments on commit 89535fc

Please sign in to comment.