mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 07:04:12 +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="$ " | export PS1="$ " | ||||||
| echo > $HISTFILE | echo > $HISTFILE | ||||||
| eval $(thefuck --alias {}) | eval $(thefuck --alias {}) | ||||||
|  | echo "instant mode ready: $THEFUCK_INSTANT_MODE" | ||||||
| ' > ~/.bashrc''' | ' > ~/.bashrc''' | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -32,6 +33,8 @@ def proc(request, spawnu, TIMEOUT): | |||||||
|     proc.sendline(init_bashrc.format( |     proc.sendline(init_bashrc.format( | ||||||
|         u'--enable-experimental-instant-mode' if instant_mode else '')) |         u'--enable-experimental-instant-mode' if instant_mode else '')) | ||||||
|     proc.sendline(u"bash") |     proc.sendline(u"bash") | ||||||
|  |     if instant_mode: | ||||||
|  |         assert proc.expect([TIMEOUT, u'instant mode ready: True']) | ||||||
|     return proc |     return proc | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -25,6 +25,7 @@ export SAVEHIST=100 | |||||||
| export HISTSIZE=100 | export HISTSIZE=100 | ||||||
| eval $(thefuck --alias {}) | eval $(thefuck --alias {}) | ||||||
| setopt INC_APPEND_HISTORY | setopt INC_APPEND_HISTORY | ||||||
|  | echo "instant mode ready: $THEFUCK_INSTANT_MODE" | ||||||
| ' > ~/.zshrc''' | ' > ~/.zshrc''' | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -39,6 +40,8 @@ def proc(request, spawnu, TIMEOUT): | |||||||
|     proc.sendline(init_zshrc.format( |     proc.sendline(init_zshrc.format( | ||||||
|         u'--enable-experimental-instant-mode' if instant_mode else '')) |         u'--enable-experimental-instant-mode' if instant_mode else '')) | ||||||
|     proc.sendline(u"zsh") |     proc.sendline(u"zsh") | ||||||
|  |     if instant_mode: | ||||||
|  |         assert proc.expect([TIMEOUT, u'instant mode ready: True']) | ||||||
|     return proc |     return proc | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user