Abhilash Raj pushed to branch master at GNU Mailman / Mailman Core
Commits: ed891716 by Abhilash Raj at 2022-02-23T19:54:02-08:00 When running tests as root, force run mailman commands. Auto-add `--run-as-root` flag when running commands in tests as root. - - - - - 327424ac by Abhilash Raj at 2022-02-24T04:20:27+00:00 Merge branch 'fix-tests' into 'master' When running tests as root, force run mailman commands. See merge request mailman/mailman!967 - - - - - 1 changed file: - src/mailman/testing/documentation.py Changes: ===================================== src/mailman/testing/documentation.py ===================================== @@ -191,6 +191,10 @@ def run_mailman(args, **overrides): env = os.environ.copy() env.update(overrides) run_args = [exe] + # When running tests as root, just add the flag to force run mailman + # command without errors. + if os.geteuid() == 0: + run_args.append('--run-as-root') run_args.extend(args) proc = run( run_args, env=env, stdout=PIPE, stderr=STDOUT, universal_newlines=True) View it on GitLab: https://gitlab.com/mailman/mailman/-/compare/55c5a04b6b262e3923fed4b374deeff4a36497a8...327424acbaf98c691f3400c67c8aeede49d638f0 -- View it on GitLab: https://gitlab.com/mailman/mailman/-/compare/55c5a04b6b262e3923fed4b374deeff4a36497a8...327424acbaf98c691f3400c67c8aeede49d638f0 You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list -- mailman-checkins@python.org To unsubscribe send an email to mailman-checkins-le...@python.org https://mail.python.org/mailman3/lists/mailman-checkins.python.org/ Member address: arch...@jab.org