The driver here is to use ska_helpers.retry to avoid the 'Resource temporarily unavailable' error seen occasionally when updating the cmds archive. See also #196 for the "client-side" analog.
In order to test that this was working, I ported the regression test from ska_testr/packages/kadi/test_regress.sh into a unit test. In theory that ska_testr test can be removed (but it isn't hurting anything and runs quickly).
Testing
[x] Passes unit tests on MacOS including new unit test (tested in ska3-dev with masters)
[x] Functional testing
Functional testing
I forced the open file function to fail twice to see it fail and then subsequently succeed. This was done by calling this stub tables_open_file function instead of tables.open_file.
Description
The driver here is to use
ska_helpers.retry
to avoid the 'Resource temporarily unavailable' error seen occasionally when updating the cmds archive. See also #196 for the "client-side" analog.In order to test that this was working, I ported the regression test from
ska_testr/packages/kadi/test_regress.sh
into a unit test. In theory that ska_testr test can be removed (but it isn't hurting anything and runs quickly).Testing
Functional testing
I forced the open file function to fail twice to see it fail and then subsequently succeed. This was done by calling this stub
tables_open_file
function instead oftables.open_file
.The output was: