From 631f6eadaf3471b0e88dc4886fab5c6b994547c5 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 9 May 2024 15:24:02 -0400 Subject: [PATCH] test: cover round-trip of runner URL paths --- moz-webgpu-cts/src/shared.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/moz-webgpu-cts/src/shared.rs b/moz-webgpu-cts/src/shared.rs index ff95f17..9fc65f7 100644 --- a/moz-webgpu-cts/src/shared.rs +++ b/moz-webgpu-cts/src/shared.rs @@ -690,7 +690,16 @@ fn report_meta_match() { TestPath::from_execution_report($test_run_path).unwrap(), TestPath::from_fx_metadata_test(Path::new($rel_meta_path), $test_section_header) .unwrap() - ) + ); + assert_eq!( + format!( + "/{}", + TestPath::from_execution_report($test_run_path) + .unwrap() + .runner_url_path() + ), + $test_run_path, + ); }; }