From 62b8a63b80b1f83608eeb860312b751b01794cfd Mon Sep 17 00:00:00 2001 From: Sebastian Guarino Date: Thu, 28 Apr 2022 17:25:43 +0200 Subject: [PATCH] Add --filter to remote test (#4244) --- platformio/commands/remote/command.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/platformio/commands/remote/command.py b/platformio/commands/remote/command.py index 1c6bc2aa..d861d66c 100644 --- a/platformio/commands/remote/command.py +++ b/platformio/commands/remote/command.py @@ -163,7 +163,20 @@ def remote_run( @cli.command("test", short_help="Remote Unit Testing") @click.option("--environment", "-e", multiple=True, metavar="") -@click.option("--ignore", "-i", multiple=True, metavar="") +@click.option( + "--filter", + "-f", + multiple=True, + metavar="", + help="Filter tests by a pattern", +) +@click.option( + "--ignore", + "-i", + multiple=True, + metavar="", + help="Ignore tests by a pattern", +) @click.option("--upload-port") @click.option("--test-port") @click.option( @@ -184,6 +197,7 @@ def remote_test( ctx, agents, environment, + filter, ignore, upload_port, test_port, @@ -201,6 +215,7 @@ def remote_test( agents, dict( environment=environment, + filter=filter, ignore=ignore, upload_port=upload_port, test_port=test_port, @@ -219,6 +234,7 @@ def remote_test( ctx.invoke( test_cmd, environment=environment, + filter=filter, ignore=ignore, project_dir=project_dir, without_uploading=True,