2020-07-27 08:55:00 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
from pexpect_helper import SpawnedProc
|
|
|
|
|
|
|
|
sp = SpawnedProc()
|
|
|
|
sendline, expect_prompt = sp.sendline, sp.expect_prompt
|
|
|
|
|
|
|
|
expect_prompt()
|
|
|
|
sendline("status job-control full")
|
|
|
|
expect_prompt()
|
|
|
|
|
2020-11-22 21:39:48 +08:00
|
|
|
sendline(
|
|
|
|
"$fish -c 'status job-control full ; $fish_test_helper report_foreground' &; wait"
|
|
|
|
)
|
2020-07-27 08:55:00 +08:00
|
|
|
expect_prompt()
|
|
|
|
|
|
|
|
sendline("echo it worked")
|
|
|
|
expect_prompt("it worked")
|
2022-09-09 07:47:43 +08:00
|
|
|
|
|
|
|
# Regression test for #9181
|
|
|
|
sendline("status job-control interactive")
|
|
|
|
expect_prompt()
|
|
|
|
sendline("$fish_test_helper abandon_tty")
|
|
|
|
expect_prompt()
|
|
|
|
sendline("echo cool")
|
|
|
|
expect_prompt("cool")
|
|
|
|
sendline("true ($fish_test_helper abandon_tty)")
|
|
|
|
expect_prompt()
|
|
|
|
sendline("echo even cooler")
|
|
|
|
expect_prompt("even cooler")
|