+2024-05-08 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix behavior of --test when a subprocess fails.
+ Reported by Bruno Haible in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00101.html>.
+ * pygnulib/main.py (main): Use sp.run with check=True so that an
+ exception is thrown when a process fails. Simply exit if an exception
+ occurs.
+
2024-05-07 Collin Funk <collin.funk1@gmail.com>
base32, base64: Prefer stdckdint to intprops.
os.mkdir('build')
os.chdir('build')
try: # Try to execute commands
- sp.call(['../configure'])
- sp.call([UTILS['make']])
- sp.call([UTILS['make'], 'check'])
- sp.call([UTILS['make'], 'distclean'])
+ sp.run(['../configure'], check=True)
+ sp.run([UTILS['make']], check=True)
+ sp.run([UTILS['make'], 'check'], check=True)
+ sp.run([UTILS['make'], 'distclean'], check=True)
except Exception:
sys.exit(1)
args = ['find', '.', '-type', 'f', '-print']