[PATCH] tests: fix py-compile-basedir.sh: add missing test call

2022-01-17 Thread Mike Frysinger
From: Thomas Deutschmann 

Commit b279a0d46dfeca1ca40057c3c910ab1657d60be5 ("tests: in python
tests, do not require .pyo files (for python3)") had a slight logic
error in that it missed a `test` call.

Reported to Gentoo at https://bugs.gentoo.org/715040.

* t/py-compile-basedir.sh: Add test command.
---
 t/py-compile-basedir.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/py-compile-basedir.sh b/t/py-compile-basedir.sh
index 44b6b07c1962..979f65710c0b 100644
--- a/t/py-compile-basedir.sh
+++ b/t/py-compile-basedir.sh
@@ -43,7 +43,7 @@ for d in foo foo/bar "$(pwd)/foo" . .. ../foo ''; do
   py_installed "$d2/sub/$f.pyc"
   files=$(find "$d2" | grep '\.py[co]$')
   # with new-enough Python3, there are six files.
-  test $(echo "$files" | wc -l) -eq 4 || $(echo "$files" | wc -l) -eq 6
+  test $(echo "$files" | wc -l) -eq 4 || test $(echo "$files" | wc -l) -eq 6
   case $d2 in
 .|..) rm -f $files;;
*) rm -rf "$d2";;
-- 
2.33.0




[PATCH] gitignore: drop redundant config.h.in~ rule

2022-01-17 Thread Mike Frysinger
Since we're ignoring all *~ files, we don't need this explicit one.

* .gitignore: Delete config.h.in~ rule.
---
 .gitignore | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 6e7809bffe80..40540ad7ebf0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,7 +28,6 @@
 /doc/amhello/aclocal.m4
 /doc/amhello/compile
 /doc/amhello/config.h.in
-/doc/amhello/config.h.in~
 /doc/amhello/configure
 /doc/amhello/depcomp
 /doc/amhello/install-sh
-- 
2.33.0