Use .src.py extension instead of .src for pycdc test output

This commit is contained in:
Michael Hansen
2016-08-31 16:13:18 -07:00
parent a02478cc56
commit 5c60db15f2
2 changed files with 11 additions and 2 deletions

View File

@@ -73,7 +73,16 @@ errors=()
set +e
for srcf in "$testdir"/*.pyc.src; do
shopt -s nullglob
rtsources=("$testdir"/*.pyc.src.py)
shopt -u nullglob
if (( ${#rtsources[@]} == 0 )); then
echo "No decompyled sources found in $testdir"
exit 1
fi
for srcf in "${rtsources[@]}"; do
# There's probably a better way...
srcver=$(grep '# File: .* (Python [0-9]\.[0-9]\+)$' "$srcf" | sed -e 's/.* (Python //' -e 's/)//')

View File

@@ -16,7 +16,7 @@ errors=()
for f in "$testdir"/*.pyc
do
base="tests/$(basename "$f")"
./pycdc "$f" 2>"$base.err" 1>"$base.src"
./pycdc "$f" 2>"$base.err" 1>"$base.src.py"
if (( $? )) || [[ -s "$base.err" ]]
then
let fails+=1