WIP: Recommission DB upload via script and GUI.
Changes to upload code
- Move
uploadPWBTests.py
topbv3_upload_tests.py
and add to setup. - Move uploading code to a
pbv3_upload_tests.upload_test_result_file
function. - Revamp how
CONFIG
versioning is done. The DB now tries to match an attached config file against existing entries in the DB. If properties match up, then the major version is used. If the parameters also match up, the minor version is used. If one of them does not match, then the next available number is used for that field. - Add
--institution
option topbv3_upload_tests
.
Changes to GUI
- Add
pbv3parser.ResultsParser
that looks for result files in the output and stores them in a list. - Add
testing.uploadResults
that uploads the results from the current tab. Results are specified byself.panel.results
(instance ofpbv3parser.ResultsParser
). - Add
dbupload-button
that callsuploadResults
. - Differentiate
error
vsdone
states for a test process based on return code. - The
dbupload-button
is enabled only when a test reaches thedone
stage.