PyFixate / Fixate

Framework for hardware test fixtures and automatic test environments
MIT License
22 stars 16 forks source link

Add computername logging #179

Closed Jasper-Harvey0 closed 5 months ago

Jasper-Harvey0 commented 10 months ago

Recently I have been wanting to filter fixate logs by asset number to get an idea if a specific amptower has been failing more than others. This should allow us to do this.

I am not sure how to write a test for this, as the computername string will change every time fixate is run on a new computer. Maybe someone has as idea?

clint-lawrence commented 9 months ago

@Jasper-Harvey0 to test, you could run a test script, look for the computer name log entry, then check is matches platform.node?

John2202W commented 9 months ago

Just noting in case you haven't followed it through before but the default reporting config is overwritten when called through amptest. So will need to be updated in the src there too in the future to release

Jasper-Harvey0 commented 9 months ago

Had to add another yaml log config to leave the current tests unaffected.

Thanks for that John, I did run into that issue when doing my testing.