From bbbc952d013c57e54f75d704b01710dc1b55e094 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Wed, 5 Oct 2022 13:29:57 +0200 Subject: [PATCH] Use the target output name for test targets on WASM Since all tests can now be run by the batched test runner, rename the main resource to a more suitable {_target_output_name}.html Change-Id: Icda80ce95ac9ae51851d52ebb4b1ce668c528324 Reviewed-by: David Skoland --- src/corelib/Qt6WasmMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/Qt6WasmMacros.cmake b/src/corelib/Qt6WasmMacros.cmake index c248331e61..6153c8d617 100644 --- a/src/corelib/Qt6WasmMacros.cmake +++ b/src/corelib/Qt6WasmMacros.cmake @@ -28,7 +28,7 @@ function(_qt_internal_wasm_add_target_helpers target) get_target_property(is_test ${target} _qt_is_test_executable) if(is_test) configure_file("${WASM_BUILD_DIR}/libexec/batchedtestrunner.html" - "${target_output_directory}/batchedtestrunner.html" COPYONLY) + "${target_output_directory}/${_target_output_name}.html" COPYONLY) configure_file("${WASM_BUILD_DIR}/libexec/qtestoutputreporter.css" "${target_output_directory}/qtestoutputreporter.css" COPYONLY) configure_file("${WASM_BUILD_DIR}/libexec/batchedtestrunner.js"