Nitrokey / opcard-rs

OpenPGP card implementation
49 stars 1 forks source link

Update dangerous-real-tests to fix conflicts between sequoia, gpg-agent and pcscd #126

Closed sosthene-nitrokey closed 1 year ago

sosthene-nitrokey commented 1 year ago

Before this fix there were some issues:

  1. gpg needed the usb vendor/product ids while sequoia needed the gpg vendor id and serial number. This PR makes the two configurable with distinct variables
  2. running the seqouia tests after the gpg ones caused a conflict because gpg-agent held the card so pcscd didn't see it, and vice-versa. So the tests now:
    1. Start pcscd (if not already started)
    2. run the sequoia tests
    3. kill pcscd
    4. run the gpg tests.