Skip to content

Commit

Permalink
Fixed reset_tests.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Mar 5, 2012
1 parent 865511a commit 43e4ae7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/reset_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Reset Propel tests fixtures
# 2011 - William Durand <william.durand1@gmail.com>

Expand Down Expand Up @@ -43,7 +43,8 @@ done
REVERSE_DIRS=`ls $FIXTURES_DIR/reverse`

for dir in $REVERSE_DIRS ; do
echo "[ $dir ]"

$ROOT/generator/bin/propel-gen $FIXTURES_DIR/reverse/$dir insert-sql
if [ -f "$FIXTURES_DIR/reverse/$dir/build.properties" ] ; then
echo "[ $dir ]"
$ROOT/generator/bin/propel-gen $FIXTURES_DIR/reverse/$dir insert-sql
fi
done

0 comments on commit 43e4ae7

Please sign in to comment.