@@ -557,7 +557,7 @@ for (const bundlePath of [
557557 t . is ( result . toolsVersion , "unknown" ) ;
558558 t . is ( result . toolsSource , setupCodeql . ToolsSource . Download ) ;
559559 t . is (
560- result . toolsDownloadStatusReport ?. bundleLanguage ,
560+ result . toolsDownloadStatusReport ?. perLanguage ?. tools_bundle_language ,
561561 bundlePath === "codeql-bundle-ruby-linux64.tar.zst"
562562 ? BuiltInLanguage . ruby
563563 : undefined ,
@@ -1309,11 +1309,12 @@ for (const fallback of [false, true]) {
13091309 t . is ( extractStub . lastCall . args [ 3 ] , "token token" ) ;
13101310 t . is ( result . toolsVersion , MIN_PER_LANGUAGE_BUNDLE_CLI_VERSION ) ;
13111311 t . is (
1312- result . toolsDownloadStatusReport ?. bundleLanguage ,
1312+ result . toolsDownloadStatusReport ?. perLanguage ?. tools_bundle_language ,
13131313 fallback ? undefined : BuiltInLanguage . java ,
13141314 ) ;
13151315 t . is (
1316- result . toolsDownloadStatusReport ?. perLanguageBundleFallback ,
1316+ result . toolsDownloadStatusReport ?. perLanguage
1317+ ?. tools_per_language_bundle_fallback ,
13171318 fallback ? true : undefined ,
13181319 ) ;
13191320 if ( fallback ) {
@@ -1401,7 +1402,8 @@ for (const bundle of ["per-language", "combined", "fallback"] as const) {
14011402 t . is ( result . toolsDownloadStatusReport ?. downloadDurationMs , 200 ) ;
14021403 t . is ( result . toolsDownloadStatusReport ?. extractionDurationMs , 100 ) ;
14031404 t . is (
1404- ( await downloadSpy . lastCall . returnValue ) . statusReport . bundleLanguage ,
1405+ ( await downloadSpy . lastCall . returnValue ) . statusReport . perLanguage
1406+ ?. tools_bundle_language ,
14051407 bundle === "per-language" ? BuiltInLanguage . javascript : undefined ,
14061408 ) ;
14071409 t . is ( extractStub . callCount , bundle === "fallback" ? 2 : 1 ) ;
@@ -1415,11 +1417,12 @@ for (const bundle of ["per-language", "combined", "fallback"] as const) {
14151417 bundle === "per-language" ? perLanguageURL : combinedURL ,
14161418 ) ;
14171419 t . is (
1418- result . toolsDownloadStatusReport ?. bundleLanguage ,
1420+ result . toolsDownloadStatusReport ?. perLanguage ?. tools_bundle_language ,
14191421 bundle === "per-language" ? BuiltInLanguage . javascript : undefined ,
14201422 ) ;
14211423 t . is (
1422- result . toolsDownloadStatusReport ?. perLanguageBundleFallback ,
1424+ result . toolsDownloadStatusReport ?. perLanguage
1425+ ?. tools_per_language_bundle_fallback ,
14231426 bundle === "fallback" ? true : undefined ,
14241427 ) ;
14251428 t . is (
@@ -1503,7 +1506,7 @@ for (const asset of [
15031506 t . is ( extractStub . firstCall . args [ 0 ] , url ) ;
15041507 t . is ( result . toolsVersion , "9.9.9" ) ;
15051508 t . is (
1506- result . toolsDownloadStatusReport ?. bundleLanguage ,
1509+ result . toolsDownloadStatusReport ?. perLanguage ?. tools_bundle_language ,
15071510 BuiltInLanguage . ruby ,
15081511 ) ;
15091512 t . is ( path . dirname ( result . codeqlFolder ) , tmpDir ) ;
0 commit comments