[Chore] Gen keys once in test-morley-client.bats

Description

Problem: scripts/test-morley-client.bats generates sender/receiver keys n+1 times, where n is the number of tests. Since key generation/ revelation takes a considerable amount of time, it would be better to only do this once

Solution: since bats v1.2.1, a setup_file hook exists that runs only once per testsuite. Use it for initial setup.

Related issue(s)

Initially brought up in #640 (comment 643038630)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

N/A, this is a test script update

Stylistic guide (mandatory)

Merge request reports

Loading