Otherwise dd will read whatever /dev/random has to offer at the moment and the test file will be a few bytes instead of a megabyte in size. --- client/tests/kvm/tests/usb.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/tests/kvm/tests/usb.py b/client/tests/kvm/tests/usb.py index 77ed5a2..6490383 100644 --- a/client/tests/kvm/tests/usb.py +++ b/client/tests/kvm/tests/usb.py @@ -87,7 +87,7 @@ def run_usb(test, params, env): error.context("Creating comparison file") c_file = '/tmp/usbfile' - session.cmd("dd if=/dev/random of=%s bs=1M count=1" % c_file) + session.cmd("dd if=/dev/urandom of=%s bs=1M count=1" % c_file) error.context("Copying %s to USB disk" % c_file) session.cmd("cp %s /mnt" % c_file) -- 1.7.1 _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest