Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8303959

tools/jpackage/share/RuntimePackageTest.java fails with java.lang.AssertionError missing files

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 21
    • 22
    • tools
    • x86_64
    • windows

    Description

      [21:10:59.015] Succeeded in building MSI Installer Package package
      [21:10:59.065] TRACE: exec: Done. Exit code: 0
      [21:10:59.065] TRACE: assertEquals(0): Check command [c:\\ade\\mesos\\work_dir\\jib-master\\install\\2023-03-02-2350281.mikael.vidstedt.jdk\\windows-x64.jdk\\jdk-21\\bin\\jpackage.exe --dest .\\test\\output --name RuntimePackageTest --type msi --runtime-image c:\\ade\\mesos\\work_dir\\jib-master\\install\\2023-03-02-2350281.mikael.vidstedt.jdk\\windows-x64.jdk\\jdk-21 -J-Djlink.debug=true --verbose](11) exited with 0 code
      [21:10:59.065] TRACE: assertTrue(): Check [.\\test\\output\\RuntimePackageTest-1.0.msi] path exists
      [21:10:59.065] TRACE: assertTrue(): Check [.\\test\\output\\RuntimePackageTest-1.0.msi] is a file
      [21:10:59.065] TRACE: Create [C:\\sb\\prod\\1678392806\\testoutput\\test-support\\jtreg_open_test_jdk_tier2\\scratch\\3_4\\test\\unpacked-msi\\unpack.bat] text file...
      [21:10:59.065] TRACE: icacls ".\\test\\unpacked-msi" /inheritance:e /grant Users:M
      [21:10:59.065] TRACE: msiexec /a "test\\output\\RuntimePackageTest-1.0.msi" /qn TARGETDIR="C:\\sb\\prod\\1678392806\\testoutput\\test-support\\jtreg_open_test_jdk_tier2\\scratch\\3_4\\test\\unpacked-msi\\Program Files"
      [21:10:59.081] TRACE: Done
      [21:10:59.081] TRACE: exec: Execute [cmd /c .\\test\\unpacked-msi\\unpack.bat](3); discard I/O...
      [21:11:03.948] TRACE: exec: Done. Exit code: 0
      [21:11:03.948] TRACE: assertEquals(0): Check command [cmd /c .\\test\\unpacked-msi\\unpack.bat](3) exited with 0 code
      [21:11:03.948] TRACE: Verify unpacked: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\2023-03-02-2350281.mikael.vidstedt.jdk\\windows-x64.jdk\\jdk-21\\bin\\jpackage.exe --dest .\\test\\output --name RuntimePackageTest --type msi --runtime-image c:\\ade\\mesos\\work_dir\\jib-master\\install\\2023-03-02-2350281.mikael.vidstedt.jdk\\windows-x64.jdk\\jdk-21 jpt-unpacked-folder .\\test\\unpacked-msi](11)
      [21:11:03.948] TRACE: assertEquals(2): Check the package has 2 top installation directories
      [21:11:03.995] TRACE: assertStringListEquals(): Check there are no files with [.jpackage.xml] name in the package
      [21:11:04.011] TRACE: assertStringListEquals(): Check there are no files with [.package] name in the package
      [21:11:04.011] TRACE: assertTrue(): Check [.\\test\\unpacked-msi\\Program Files\\RuntimePackageTest] path exists
      [21:11:04.011] TRACE: assertTrue(): Check [.\\test\\unpacked-msi\\Program Files\\RuntimePackageTest] is a directory
      [21:11:04.073] TRACE: Missing 1 files:
      [21:11:04.073] TRACE: conf\\security\\policy\\testlimited
      [21:11:04.073] TRACE: Done
      [21:11:04.089] ERROR: Failed: Check there are no missing files in installed image
      [21:11:04.089] [ FAILED ] RuntimePackageTest.test; checks=10
      [21:11:04.089] [ RUN ] RuntimePackageTest.testUsrInstallDir
      [21:11:04.089] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
      [21:11:04.089] TRACE: Deleting [.\\testUsrInstallDir] directory recursively
      [21:11:04.104] [ OK ] RuntimePackageTest.testUsrInstallDir; checks=0
      [21:11:04.104] [ RUN ] RuntimePackageTest.testUsrInstallDir2
      [21:11:04.104] TRACE: Actions: [[initialize], [create], [unpack], [verify-install], [finalize]]
      [21:11:04.104] TRACE: Deleting [.\\testUsrInstallDir2] directory recursively
      [21:11:04.104] [ OK ] RuntimePackageTest.testUsrInstallDir2; checks=0
      [21:11:04.104] [==========] 3 tests ran
      [21:11:04.104] [ PASSED ] 2 tests
      [21:11:04.104] [ FAILED ] 1 test, listed below
      [21:11:04.104] [ FAILED ] RuntimePackageTest.test; workDir=[.\\test]
      [21:11:04.104] 1 FAILED TEST
      ----------System.err:(58/3930)----------
      java.lang.AssertionError: Failed: Check there are no missing files in installed image
      at jdk.jpackage.test.TKit.error(TKit.java:273)
      at jdk.jpackage.test.TKit.assertTrue(TKit.java:653)
      at RuntimePackageTest.assertFileListEmpty(RuntimePackageTest.java:160)
      at RuntimePackageTest.lambda$init$3(RuntimePackageTest.java:126)
      at jdk.jpackage.test.Functional$ThrowingConsumer.lambda$toConsumer$0(Functional.java:41)
      at jdk.jpackage.test.PackageTest$Handler.lambda$verifyPackageInstalled$5(PackageTest.java:658)

      Attachments

        Activity

          People

            asemenyuk Alexey Semenyuk
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: