Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65986

Can't run test using TESTDATA on Boot2Qt device

    XMLWordPrintable

Details

    Description

      When running this test on an iMX6, I get this error message when deploying:

      :-1: error: Failed to upload file "/home/mitch/dev/qt5.10/qtquickcontrols2/tests/auto/qquickiconimage/data/*.qml": Could not open for reading.
      

      Changing the .pro to this helps it deploy:

      TESTDATA += \
          $$files($$PWD/data/*.qml) \
          $$files($$PWD/data/icons/*)
      

      But then I get:

      QWARN  : tst_qquickiconimage::nameBindingSourceSize() file:///data/nameBindingSourceSize.qml: No such file or directory
      FAIL!  : tst_qquickiconimage::nameBindingSourceSize() Compared values are not the same
         Actual   (view.status())    : Error
         Expected (QQuickView::Ready): Ready
         Loc: [../qquickiconimage/tst_qquickiconimage.cpp(119)]
      

      This is because it uploads the files using the path on the host directory. E.g. if the path to the test on the device is:

      /usr/local/qt5.10/tests/tst_qquickiconimage

      then the path to the QML files that were deployed is:

      /usr/local/qt5.10/tests/tst_qquickiconimage/home/mitch/dev/qt5.10/qtquickcontrols2/tests/auto/qquickiconimage/data/.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes