Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-2383

Refactor: stop using obsolete init_component_data_online() function



    • Type: Task
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: RTA
    • Labels:
    • Technical Risk:


      init_component_data_online() is the old way of enabling component data for the test (for example binaries/sources/docs/examples for Qt or other components) and uses complex and hard coded way of listing the features to be enabled and the latest definition is  'online_devicecreation_src_qt510', seems outdated anyways.

      Seems that device creation tests are the only one using the old init_component_data_online() function, so update the tests so we can trash the function and all related data.

      With quick look the update would go as follows:

      • replace init_component_data_online() with init_components(installDefault, specificCompiler), you can use the 'specificCompiler' but the 'installDefault' only installs Qt binaries, so you need to:
      • define new variable (or multiple if needed) in defines.py to be used in place of 'installDefault', for example 'installDCsources'
      • update init_components() by adding new else-branch for your new 'installxx' option
        • based on online_devicecreation_src_qt510 looks like something like this would do it for you:
          • comp_list.append(devicecreation + "_src_doc_examples")
          • everything that is in 'elif installSplit in installType' (the code might look complicated, but basically it's just enabling doc and examples to all components, there is just some exceptions: some modules don't have docs available at all, so it can not be enabled, same with examples)

      If any problems raises, ping me


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



            • Assignee:
              khormi Kari Hormi
              joaijala Johanna Äijälä
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes