Commit Graph

1 Commits

Author SHA1 Message Date
L. David Baron
0309ac9d81 Rename (renumber) new mozilla-central-reftests shapes1 tests to avoid filename collisions with existing tests. Followup to bug 1311244, bug 1326406, and bug 1326407.
Fixes https://github.com/w3c/csswg-test/issues/1227 .

This patch was written with the script:
#!/bin/bash

cd "$(dirname "$0")/shapes1"

echo "circle 31
ellipse 31
inset 15" | while read BASE INCREMENT
do
   echo shape-outside-$BASE-* | sed 's/ /\n/g;' | sed 's/\([0-9]\{3\}\)/ \1 /' | while read FILESTART OLDNUM FILEEND
   do
       NEWNUM=$(printf "%03d" $(($(echo $OLDNUM | sed 's/^0*//') + $INCREMENT)))
       OLDFILE="$FILESTART$OLDNUM$FILEEND"
       NEWFILE="$FILESTART$NEWNUM$FILEEND"
       hg mv "$OLDFILE" "$NEWFILE"
       sed -i -e "s/$OLDFILE/$NEWFILE/g" *
   done
done
2017-03-03 09:15:54 -08:00