Package: pexpect
Version: 4.8.0-1
Followup-For: Bug #986727
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch

Hi,

I've looked into this recently and I agree we should try to keep as many
tests as possible.

I was able to make some broken tests work by adding the 'needs-root'
restriction (e.g. test_run_event_as_function/method failed with:
'child_result_list': [b'To run a command as administrator
(u...and>".\r\nSee "man sudo_root" for details.\r\n\r\nGO:']).

Furthermore, I added the python-is-python3 dependency to fix errors like
this: "pexpect.exceptions.ExceptionPexpect: The command was not found or
was not executable: python."

Other tests just seem to be flaky as they fail randomly in consecutive
test runs. I sourced the following tests from DebCI, Ubuntu Autopkgtests
and local test runs on LXD and qemu and skipped them in d/tests/control:
  test_before_across_chunks
  test_interact_escape_None
  test_interact_exit_unicode
  test_spawn_uses_env

Thanks for considering the patch.

Cheers,
  Lukas


-- System Information:
Debian Release: bullseye/sid
  APT prefers groovy-updates
  APT policy: (500, 'groovy-updates'), (500, 'groovy-security'), (500, 
'groovy'), (100, 'groovy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.0-48-generic (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru pexpect-4.8.0/debian/tests/control pexpect-4.8.0/debian/tests/control
--- pexpect-4.8.0/debian/tests/control  2021-01-04 20:51:00.000000000 +0100
+++ pexpect-4.8.0/debian/tests/control  2021-04-13 11:29:48.000000000 +0200
@@ -1,2 +1,7 @@
-Test-Command: python3 -m pytest -k 'not (pxssh or replwrap)' tests
-Depends: @, python3-pytest, openssl
+Test-Command: python3 -m pytest -k 'not (pxssh or replwrap or
+  test_before_across_chunks or
+  test_interact_escape_None or
+  test_interact_exit_unicode or
+  test_spawn_uses_env)' tests
+Depends: @, python3-pytest, openssl, python-is-python3
+Restrictions: needs-root

Reply via email to