fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
7e3fac561
master
1#!/usr/bin/env python3 2from pexpect_helper import SpawnedProc 3 4sp = SpawnedProc () 5sendline ,expect_prompt = sp .sendline ,sp .expect_prompt 6 7expect_prompt () 8sendline ("status job-control full" ) 9expect_prompt () 10 11sendline ( 12"$fish -c 'status job-control full ; $fish_test_helper report_foreground' &; wait" 13) 14expect_prompt () 15 16sendline ("echo it worked" ) 17expect_prompt ("it worked" ) 18 19# Regression test for #9181 20sendline ("status job-control interactive" ) 21expect_prompt () 22sendline ("$fish_test_helper abandon_tty" ) 23expect_prompt () 24sendline ("echo cool" ) 25expect_prompt ("cool" ) 26sendline ("true ($fish_test_helper abandon_tty)" ) 27expect_prompt () 28sendline ("echo even cooler" ) 29expect_prompt ("even cooler" ) 30 31sendline ("TERM=not-dumb $fish -c read" ) 32sp .send_primary_device_attribute () 33sendline ("something" ) 34sp .expect_re (r"\x1b\[\?u" ) 35expect_prompt ()