Comment 3 for bug 1224820

Revision history for this message
Taihsiang Ho (tai271828) wrote :

set -x dumped

http://paste.ubuntu.com/6100920/

+ disk=/dev/sdb
+ '[' -b /dev/sdb ']'
+ echo '/dev/sdb is a block device'
++ parted -l -s
++ grep /dev/sdb
++ awk '{print $3}'
+ size=32.0GB
+ '[' -n 32.0GB ']'
+ echo '/dev/sdb reports a size of 32.0GB.'
+ size_range=GB + '[' GB == KB ']' + '[' GB == MB ']'
+ run_bonnie /dev/sdb + echo 'Running bonnie++ on /dev/sdb...'
++ df -h
++ awk '{print $6}'
++ grep -m 1 /dev/sdb
+ mount_point=
+ echo 'Putting scratch disk at '
+ mkdir -p /tmp/scratchdir
++ df -m
++ grep -m 1 /dev/sdb
++ awk '{print $4}'
+ free_space= + echo ' Disk /dev/sdb has MB available'
++ free -m ++ grep Mem ++ awk '{print $2}'
+ memory=5871
+ echo ' System has 5871MB RAM'
+ disk_needed=11742
+ echo ' We need 11742MB of disk space for testing'
+ [[ 11742 -ge '' ]]
+ echo ' Insufficient disk space available for defaults.'
+ echo ' reducing memory footprint to be 1/2 of free disk space.' /usr/share/checkbox/scripts/storage_test: line 27