Merge pull request #8178 from sfc-gh-anoyes/anoyes/disable-kaio
Add an option to disable kernel-aio in test harness
This commit is contained in:
commit
5fef9e2d8e
|
@ -141,6 +141,7 @@ class Config:
|
|||
self.old_binaries_path_args = {'help': 'Path to the directory containing the old fdb binaries'}
|
||||
self.tls_plugin_path: Path = Path('/app/deploy/runtime/.tls_5_1/FDBLibTLS.so')
|
||||
self.tls_plugin_path_args = {'help': 'Path to the tls plugin used for binaries < 5.2.0'}
|
||||
self.disable_kaio: bool = False
|
||||
self.use_valgrind: bool = False
|
||||
self.use_valgrind_args = {'action': 'store_true'}
|
||||
self.buggify = BuggifyOption('random')
|
||||
|
|
|
@ -351,6 +351,8 @@ class TestRun:
|
|||
if self.use_tls_plugin:
|
||||
command += ['--tls_plugin', str(config.tls_plugin_path)]
|
||||
env["FDB_TLS_PLUGIN"] = str(config.tls_plugin_path)
|
||||
if config.disable_kaio:
|
||||
command += ['--knob-disable-posix-kernel-aio=1']
|
||||
if Version.of_binary(self.binary) >= '7.1.0':
|
||||
command += ['-fi', 'on' if self.fault_injection_enabled else 'off']
|
||||
if self.restarting:
|
||||
|
|
Loading…
Reference in New Issue