VirtualBox

Changeset 99702 in vbox


Ignore:
Timestamp:
May 9, 2023 3:41:38 PM (17 months ago)
Author:
vboxsync
Message:

testmanager/cgi/status.py changes, add arch info for test results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/cgi/status.py

    r98537 r99702  
    9595
    9696
    97 def os_results_separating(dResult, sTestName, sTestBoxOs, enmStatus):
    98     if sTestBoxOs == "linux":
    99         dict_update(dResult, sTestName + " / linux", enmStatus)
    100     elif sTestBoxOs == "win":
    101         dict_update(dResult, sTestName + " / windows", enmStatus)
    102     elif sTestBoxOs == "darwin":
    103         dict_update(dResult, sTestName + " / darwin", enmStatus)
    104     elif sTestBoxOs == "solaris":
    105         dict_update(dResult, sTestName + " / solaris", enmStatus)
    106     else:
    107         dict_update(dResult, sTestName + " / other", enmStatus)
     97def os_results_separating(dResult, sTestName, sTestBoxOs, sTestBoxCpuArch, enmStatus):
     98    if sTestBoxOs == 'win':
     99        sTestBoxOs = 'windows'
     100    elif sTestBoxOs != 'linux' and sTestBoxOs != 'darwin' and sTestBoxOs != 'solaris':
     101        sTestBoxOs = 'other'
     102    dict_update(dResult, '%s / %s.%s' % (sTestName, sTestBoxOs, sTestBoxCpuArch), enmStatus)
    108103
    109104
     
    394389SELECT  TestSets.enmStatus,
    395390        TestCases.sName,
    396         TestBoxesWithStrings.sOS
     391        TestBoxesWithStrings.sOS,
     392        TestBoxesWithStrings.sCpuArch
    397393FROM    TestSets
    398394INNER JOIN TestCases
     
    407403SELECT  TestSets.enmStatus,
    408404        TestCases.sName,
    409         TestBoxesWithStrings.sOS
     405        TestBoxesWithStrings.sOS,
     406        TestBoxesWithStrings.sCpuArch
    410407FROM    TestSets
    411408INNER JOIN BuildCategories
     
    426423            if aoRow is None:
    427424                break;
    428             os_results_separating(dResult, aoRow[1], aoRow[2], aoRow[0])  # save all test results
     425            os_results_separating(dResult, aoRow[1], aoRow[2], aoRow[3], aoRow[0])  # save all test results
    429426
    430427        # Format and output it.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette