← Back to team overview

ubuntu-accomplishments-contributors team mailing list archive

Special case for battery-testing

 

Hi all.

I have been working on an accomplishment lately, which is awarded if the user has written at least three lines on an Ubuntu IRC channel. It goes through the logs on http://irclogs.ubuntu.com/ and returns yes or no.

Since this can be a fairly heavy operation, I just made a small change to a script, making it run only once an hour (logs are updated at the same rate). This also means, though, that the accomplishments-battery can only run at most one of its test cases each time. The second always fails and passes.

I discussed the matter with Matt Fischer and concluded that the best fix right now would be to make a check on the test values to make it skip the hourly check, since this is not really part of the accomplishment.

The question is whether there is currently a better way of handling test cases and perhaps separate them from actual users. Or should there be? Hardcoding specific values does not look very nice, and it might become relevant for future scripts too.

Daniel Ejsing-Duun


Follow ups