Addendum to patch for GH-196: skip file size validation on seqwr tests.
This commit is contained in:
@ -380,6 +380,9 @@ int file_prepare(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (test_mode == MODE_WRITE)
|
||||
continue;
|
||||
|
||||
/* Validate file size */
|
||||
struct stat buf;
|
||||
if (fstat(files[i], &buf))
|
||||
|
||||
@ -244,14 +244,17 @@ GH-196: fileio: validate file sizes on startup
|
||||
########################################################################
|
||||
$ args="$fileio_args --verbosity=2"
|
||||
$ sysbench $args --file-total-size=1M prepare
|
||||
$ sysbench $args --file-test-mode=rndwr run
|
||||
$ sysbench $args --file-test-mode=rndwr --events=1 run
|
||||
FATAL: Size of file 'test_file.0' is 256KiB, but at least 8MiB is expected.
|
||||
WARNING: Did you run 'prepare' with different --file-total-size or --file-num values?
|
||||
[1]
|
||||
$ sysbench $args cleanup
|
||||
$ sysbench $args --file-num=8 prepare
|
||||
$ sysbench $args --file-test-mode=rndwr run
|
||||
$ sysbench $args --file-test-mode=rndwr --events=1 run
|
||||
FATAL: Size of file 'test_file.0' is 4MiB, but at least 8MiB is expected.
|
||||
WARNING: Did you run 'prepare' with different --file-total-size or --file-num values?
|
||||
[1]
|
||||
$ sysbench $args --file-num=8 cleanup
|
||||
$ sysbench $args --file-total-size=1M prepare
|
||||
$ sysbench $args --file-test-mode=seqwr --events=1 run
|
||||
$ sysbench $args cleanup
|
||||
Reference in New Issue
Block a user