Use .src.py extension instead of .src for pycdc test output
This commit is contained in:
@@ -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/)//')
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user