Skip to content

Commit

Permalink
tests/test_expect.py: support for strict solaris/illumos nl
Browse files Browse the repository at this point in the history
  • Loading branch information
mtelka committed Oct 5, 2023
1 parent c534976 commit 8dc7f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def test_buffer_interface(self):
def test_before_across_chunks(self):
# https://github.com/pexpect/pexpect/issues/478
child = pexpect.spawn(
'''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | nl -n rz -w 5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
'''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | nl -nrz -w5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
searchwindowsize=128
)
child.expect(['PATTERN'])
Expand Down

0 comments on commit 8dc7f9a

Please sign in to comment.