tests: Skip when zsh/pcre is not available
This commit is contained in:
		
							parent
							
								
									ce1be4153d
								
							
						
					
					
						commit
						2919679ee8
					
				|  | @ -27,6 +27,7 @@ | |||
| # vim: ft=zsh sw=2 ts=2 et | ||||
| # ------------------------------------------------------------------------------------------------- | ||||
| 
 | ||||
| if zmodload -s zsh/pcre; then | ||||
|   setopt RE_MATCH_PCRE | ||||
| 
 | ||||
|   ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' 'fg=white,bold,bg=red') | ||||
|  | @ -36,3 +37,6 @@ BUFFER='sudo ls' | |||
|   expected_region_highlight=( | ||||
|     "1 4 fg=white,bold,bg=red" | ||||
|   ) | ||||
| else | ||||
|   skip_test='Test requires zsh/pcre' | ||||
| fi | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue