Skip to content

Commit

Permalink
fix untag script to find our tags file
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Feb 20, 2013
1 parent e42255b commit 221f2a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/untag.sh
Expand Up @@ -57,15 +57,15 @@ for i in `find spec/tags/ -name "*_tags.txt"`; do
SPECNAME="${FILE%_tags.txt}"_spec.rb
SPECPATH="`echo "$SPECNAME" | sed 's#spec/tags/rubyspec/tags/#spec/rubyspec/#'`"
SPECPATH="`echo "$SPECNAME" | sed 's#spec/tags/#../rubyspec/#'`"
$TIMEOUT 15 bin/topaz ../mspec/bin/mspec tag -t $(pwd)/bin/topaz --del fails "$SPECPATH"
$TIMEOUT 15 bin/topaz ../mspec/bin/mspec tag -t "${top}/bin/topaz" --config="${top}/topaz.mspec" --del fails "$SPECPATH"
done

FAILING_FILES=""
echo "Tagging failing specs"
sleep 1
for i in `find ../rubyspec/core ../rubyspec/command_line ../rubyspec/language -name "*_spec.rb"`; do
FILE="$i"
$TIMEOUT 15 bin/topaz ../mspec/bin/mspec tag -t $(pwd)/bin/topaz --add fails "$FILE" | tee output.txt
$TIMEOUT 15 bin/topaz ../mspec/bin/mspec tag -t "${top}/bin/topaz" --config="${top}/topaz.mspec" --add fails "$FILE" | tee output.txt
grep "1 file, 0 examples, 0 expectations, 0 failures, 1 error" output.txt
if [ $? -eq 0 ]; then
# Specfile had an error during load
Expand Down

0 comments on commit 221f2a0

Please sign in to comment.