t0014: remove git command upstream of pipe
Before, the `git frotz` command would fail but its return code was hidden since it was in the upstream of a pipe. Break the pipeline into two commands so that the return code is no longer lost. Also, mark `git frotz` with test_must_fail since it's supposed to fail. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
		 Denton Liu
					Denton Liu
				
			
				
					committed by
					
						 Junio C Hamano
						Junio C Hamano
					
				
			
			
				
	
			
			
			 Junio C Hamano
						Junio C Hamano
					
				
			
						parent
						
							77a946be98
						
					
				
				
					commit
					17aa9d9c1a
				
			| @ -38,8 +38,8 @@ test_expect_success 'looping aliases - internal execution' ' | |||||||
| #' | #' | ||||||
|  |  | ||||||
| test_expect_success 'run-command formats empty args properly' ' | test_expect_success 'run-command formats empty args properly' ' | ||||||
|     GIT_TRACE=1 git frotz a "" b " " c 2>&1 | |     test_must_fail env GIT_TRACE=1 git frotz a "" b " " c 2>actual.raw && | ||||||
|     sed -ne "/run_command:/s/.*trace: run_command: //p" >actual && |     sed -ne "/run_command:/s/.*trace: run_command: //p" actual.raw >actual && | ||||||
|     echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect && |     echo "git-frotz a '\'''\'' b '\'' '\'' c" >expect && | ||||||
|     test_cmp expect actual |     test_cmp expect actual | ||||||
| ' | ' | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user