summaryrefslogtreecommitdiff
path: root/t/py-compile-destdir.sh
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@lfos.de>2020-01-28 18:32:20 -0800
committerKarl Berry <karl@freefriends.org>2020-01-29 17:58:51 -0800
commitb279a0d46dfeca1ca40057c3c910ab1657d60be5 (patch)
tree9928d56f4873d5401621e53a9658055c54e85c72 /t/py-compile-destdir.sh
parent8e05f006415d1811785ab5dab1ea4ae5a44c184e (diff)
downloadautomake-b279a0d46dfeca1ca40057c3c910ab1657d60be5.tar.gz
tests: in python tests, do not require .pyo files (for python3)
This change partially fixes automake bug#32088: https://debbugs.gnu.org/32088 * t/py-compile-basedir.sh: Remove all .pyo checks. Also, in this test only, allow for either 4 or 6 files resulting from compilation, as new-enough Python3 results in 6 (per Andreas Huettel, https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32088#17) * t/py-compile-basic.sh: Remove all .pyo checks. * t/py-compile-destdir.sh: Likewise. * t/py-compile-option-terminate.sh: Likewise. * t/python-virtualenv.sh: Likewise. * t/python10.sh: Likewise. * t/python12.sh: Likewise. * t/python3.sh: Likewise.
Diffstat (limited to 't/py-compile-destdir.sh')
-rw-r--r--t/py-compile-destdir.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/t/py-compile-destdir.sh b/t/py-compile-destdir.sh
index 57c360bfd..4ceef840a 100644
--- a/t/py-compile-destdir.sh
+++ b/t/py-compile-destdir.sh
@@ -34,13 +34,11 @@ echo 'def bar (): return "bar"' > $destdir/sub/bar.py
find $destdir # For debugging.
st=0
-for x in c o; do
- for b in foo sub/bar; do
- f=$(pyc_location -p "$destdir/$b.py$x")
- test -f "$f"
- strings "$f" || : # For debugging.
- $FGREP $destdir $f && { echo BAD: $f; st=1; }
- done
+for b in foo sub/bar; do
+ f=$(pyc_location -p "$destdir/$b.pyc")
+ test -f "$f"
+ strings "$f" || : # For debugging.
+ $FGREP $destdir $f && { echo BAD: $f; st=1; }
done
exit $st