Skip to content

Commit

Permalink
test_api: set different app_id based on what test is run (#2599)
Browse files Browse the repository at this point in the history
Closes #1125
* #1125

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2599) (if
applicable)

- [PR Build Summary](https://build.rerun.io/pr/2599)
- [Docs
preview](https://rerun.io/preview/pr%3Aemilk%2Fapi_demo_sets_app_id/docs)
- [Examples
preview](https://rerun.io/preview/pr%3Aemilk%2Fapi_demo_sets_app_id/examples)
  • Loading branch information
emilk authored Jul 4, 2023
1 parent 0669703 commit ef9386a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/test_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ def spawn_test(test: Callable[[], None], rec: rr.RecordingStream) -> None:

def main() -> None:
tests = {
"2d_layering": run_2d_layering,
"2d_lines": run_2d_lines,
"3d_points": run_3d_points,
"bbox": run_bounding_box,
Expand All @@ -432,9 +433,8 @@ def main() -> None:
"segmentation": run_segmentation,
"small_image": small_image,
"text": run_text_logs,
"transforms_rigid_3d": transforms_rigid_3d,
"transform_test": transform_test,
"2d_layering": run_2d_layering,
"transforms_rigid_3d": transforms_rigid_3d,
}

parser = argparse.ArgumentParser(description="Logs rich data using the Rerun SDK.")
Expand All @@ -458,7 +458,7 @@ def main() -> None:
args = parser.parse_args()

if not args.split_recordings:
rec = rr.script_setup(args, "test_api")
rec = rr.script_setup(args, f"test_api_{args.test}")

if args.test in ["most", "all"]:
print(f"Running {args.test} tests…")
Expand Down

0 comments on commit ef9386a

Please sign in to comment.