tests/bonsai: dj.mk: tee diagnostics to stderr instead of tty
This commit is contained in:
		
							parent
							
								
									588680406a
								
							
						
					
					
						commit
						0f2d357476
					
				| @ -20,7 +20,7 @@ dj_full: $(BIN)/dj /dev/full | ||||
| 	case "$$(uname)" in \
 | ||||
| 	Linux) \
 | ||||
| 		$(BIN)/dj -Hi /dev/zero -o /dev/full 2>&1 \
 | ||||
| 			| tee /dev/tty \
 | ||||
| 			| tee /dev/stderr \
 | ||||
| 			| xargs -I out test '1+0 > 0+0; 1024 > 0' = out \
 | ||||
| 		;; \
 | ||||
| 	esac | ||||
| @ -33,7 +33,7 @@ dj_help: $(BIN)/dj | ||||
| # Read nothing from /dev/null, write nothing to /dev/null.
 | ||||
| dj_null: $(BIN)/dj /dev/null | ||||
| 	$(BIN)/dj -Hi /dev/null -o /dev/null 2>&1 \
 | ||||
| 		| tee /dev/tty \
 | ||||
| 		| tee /dev/stderr \
 | ||||
| 		| xargs -I out test '0+0 > 0+0; 0 > 0' = out | ||||
| 
 | ||||
| # This test currently fails. This is probably due to dj(1) being stale relative
 | ||||
| @ -44,5 +44,5 @@ dj_null: $(BIN)/dj /dev/null | ||||
| # 	# Pipe 1024B of '\0' into dj(1); skip the first 24B; expect 1000B written.
 | ||||
| # 	dd count=1 bs=1024 </dev/zero 2>/dev/null \
 | ||||
| # 		| $(BIN)/dj -H -s 24 -o /dev/null 2>&1 \
 | ||||
| # 		| tee /dev/tty \
 | ||||
| # 		| tee /dev/stderr \
 | ||||
| # 		| xargs -I out test '1+0 > 1+0; 1024 > 1000' = out
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user