fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerFix fish_indent_interrupt CI workaround28c7e7173

master
418 B21 linesraw
1#!/usr/bin/env python3
2from pexpect_helper import SpawnedProc
3import os, sys
4
5if "CI" in os.environ:
6    sys.exit(127)
7
8sp = SpawnedProc(timeout=2)
9send, sendline, sleep, expect_prompt = (
10    sp.send,
11    sp.sendline,
12    sp.sleep,
13    sp.expect_prompt,
14)
15
16# Verify that the fish_indent builtin can be interrupted with ctrl-c.
17expect_prompt()
18sendline("fish_indent")
19sleep(0.1)
20send("\x03")  # ctrl-c
21expect_prompt()