mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-01-31 09:59:15 +01:00
Remove skip-test feature from testrunner.sh
It was quite cool, but we don't need it right now.
This commit is contained in:
parent
d952bd6eea
commit
3f401a551a
@ -59,19 +59,6 @@ for sectionName in :ARGS :INPUT :OUTPUT-FILTER :EXPECTED :EOF; do
|
||||
fi
|
||||
done
|
||||
|
||||
declare boxesSkipIf=""
|
||||
declare -r boxesCurrentOs=`uname -o`
|
||||
if [ $(grep -c "^:SKIP-IF" $testCaseFile) -eq 1 ]; then
|
||||
boxesSkipIf=$(cat $testCaseFile | sed -n '/^:SKIP-IF/,/^:ARGS/p;' | sed '1d;$d' | tr -d '\r')
|
||||
if [[ $boxesSkipIf == *":ENV"* ]]; then
|
||||
boxesSkipIf=$(echo ${boxesSkipIf%:ENV*} | head -c -1 | tr -d '\r')
|
||||
fi
|
||||
fi
|
||||
if [ $(echo $boxesSkipIf | xargs -n1 echo | grep -e "^$boxesCurrentOs$" | wc -l) -eq 1 ]; then
|
||||
echo " Skipping test because operating system is \"$boxesCurrentOs\"."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
declare boxesEnv=""
|
||||
if [ $(grep -c "^:ENV" $testCaseFile) -eq 1 ]; then
|
||||
boxesEnv=$(cat $testCaseFile | sed -n '/^:ENV/,/^:ARGS/p;' | sed '1d;$d' | tr -d '\r')
|
||||
|
Loading…
Reference in New Issue
Block a user