PokIsemaine opened a new issue, #2243: URL: https://github.com/apache/kvrocks/issues/2243
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues. ### Motivation When modifying kvrocks, I wish to add and execute specified test methods, but the current `x.py` generated command executes all tests, which usually takes several minutes to complete. I need to temporarily modify `x.py` or the command it generates to execute the specified method. ``` def test_go(dir: str, cli_path: str, rest: List[str]) -> None: go = find_command('go', msg='go is required for testing') find_command(cli_path, msg='redis-cli is required for testing') binpath = Path(dir).absolute() / 'kvrocks' basedir = Path(__file__).parent.absolute() / 'tests' / 'gocase' workspace = basedir / 'workspace' args = [ 'test', '-run=TestZSetSort','-timeout=1800s', '-bench=.', './...', # 'test','-timeout=1800s', '-bench=.', './...', f'-binPath={binpath}', f'-cliPath={cli_path}', f'-workspace={workspace}', *rest ] run(go, *args, cwd=str(basedir), verbose=True) ``` ### Solution _No response_ ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
