mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	tests/zdb_encrypted: parse numbers a little more robustly
On FreeBSD, `wc` prints some leading spaces, while on Linux it does not. So we tell ksh to expect an integer, and it does the rest. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #14791 Closes #14797
This commit is contained in:
		
							parent
							
								
									d960beca61
								
							
						
					
					
						commit
						b69cb06664
					
				| @ -55,8 +55,8 @@ log_must eval "echo $PASSPHRASE | zfs create -o mountpoint=$TESTDIR2" \ | ||||
| 
 | ||||
| echo 'my great encrypted text' > $file | ||||
| 
 | ||||
| obj="$(ls -i $file | cut -d' ' -f1)" | ||||
| size="$(wc -c < $file)" | ||||
| typeset -i obj=$(ls -i $file | cut -d' ' -f1) | ||||
| typeset -i size=$(wc -c < $file) | ||||
| 
 | ||||
| log_note "test file $file is objid $obj, size $size" | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rob N
						Rob N