MCPcopy Create free account
hub / github.com/apple/foundationdb / run_fdbcli_command

Function run_fdbcli_command

bindings/python/tests/fdbcli_tests.py:40–47  ·  view source on GitHub ↗

run the fdbcli statement: fdbcli --exec ' ... '. Returns: string: Console output from fdbcli

(*args)

Source from the content-addressed store, hash-verified

38
39
40def run_fdbcli_command(*args):
41 """run the fdbcli statement: fdbcli --exec '<arg1> <arg2> ... <argN>'.
42
43 Returns:
44 string: Console output from fdbcli
45 """
46 commands = command_template + ["{}".format(' '.join(args))]
47 return subprocess.run(commands, stdout=subprocess.PIPE, env=fdbcli_env).stdout.decode('utf-8').strip()
48
49
50def run_fdbcli_command_and_get_error(*args):

Callers 15

advanceversionFunction · 0.85
maintenanceFunction · 0.85
setclassFunction · 0.85
lockAndUnlockFunction · 0.85
killFunction · 0.85
suspendFunction · 0.85
versionepochFunction · 0.85
consistencycheckFunction · 0.85
cache_rangeFunction · 0.85
datadistributionFunction · 0.85
transactionFunction · 0.85

Calls 4

runMethod · 0.65
formatMethod · 0.45
joinMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected