mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Downgraded bash constructs to sh, reducing the requirements from bash to sh.
This commit is contained in:
parent
87dcbd556e
commit
6ccca32434
1 changed files with 9 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
#! /bin/bash
|
#! /bin/sh
|
||||||
|
|
||||||
rc=0
|
rc=0
|
||||||
if [ x"$1" = x"--verbose" ];
|
if [ x"$1" = x"--verbose" ];
|
||||||
|
@ -10,7 +10,10 @@ then
|
||||||
while read LINE
|
while read LINE
|
||||||
do
|
do
|
||||||
echo "$LINE"
|
echo "$LINE"
|
||||||
done < test.log || rc=1
|
done < test.log
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
rm test.log
|
rm test.log
|
||||||
done
|
done
|
||||||
exit $rc
|
exit $rc
|
||||||
|
@ -39,7 +42,10 @@ else
|
||||||
COUNT=`expr $COUNT + 1`
|
COUNT=`expr $COUNT + 1`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$i >> all.log 2>&1 || rc=1
|
$i >> all.log 2>&1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $BAR -eq 1 ]; then
|
if [ $BAR -eq 1 ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue