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:
Markus Pilman 2022-09-19 10:24:53 -06:00 committed by GitHub
commit 5fef9e2d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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')

View File

@ -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: