mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 23:22:10 +00:00 
			
		
		
		
	#682: Fix functional tests for experimental instant mode
This commit is contained in:
		| @@ -18,6 +18,7 @@ export SHELL=/bin/bash | ||||
| export PS1="$ " | ||||
| echo > $HISTFILE | ||||
| eval $(thefuck --alias {}) | ||||
| echo "instant mode ready: $THEFUCK_INSTANT_MODE" | ||||
| ' > ~/.bashrc''' | ||||
|  | ||||
|  | ||||
| @@ -32,6 +33,8 @@ def proc(request, spawnu, TIMEOUT): | ||||
|     proc.sendline(init_bashrc.format( | ||||
|         u'--enable-experimental-instant-mode' if instant_mode else '')) | ||||
|     proc.sendline(u"bash") | ||||
|     if instant_mode: | ||||
|         assert proc.expect([TIMEOUT, u'instant mode ready: True']) | ||||
|     return proc | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -25,6 +25,7 @@ export SAVEHIST=100 | ||||
| export HISTSIZE=100 | ||||
| eval $(thefuck --alias {}) | ||||
| setopt INC_APPEND_HISTORY | ||||
| echo "instant mode ready: $THEFUCK_INSTANT_MODE" | ||||
| ' > ~/.zshrc''' | ||||
|  | ||||
|  | ||||
| @@ -39,6 +40,8 @@ def proc(request, spawnu, TIMEOUT): | ||||
|     proc.sendline(init_zshrc.format( | ||||
|         u'--enable-experimental-instant-mode' if instant_mode else '')) | ||||
|     proc.sendline(u"zsh") | ||||
|     if instant_mode: | ||||
|         assert proc.expect([TIMEOUT, u'instant mode ready: True']) | ||||
|     return proc | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user