diff options
| author | iamamyth <user@example.com> | 2025-01-17 02:48:48 -0800 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-02-08 02:55:03 +0100 |
| commit | 84e44dd0122cc4e532206bad01a25629deac3d9f (patch) | |
| tree | a2add84e27e7381577b799c72cf66761bf0d0a0b /.github | |
| parent | e01d08b706380cc6518d0f0a61c0d427739a5678 (diff) | |
| download | monzero-core-84e44dd0122cc4e532206bad01a25629deac3d9f.tar.gz monzero-core-84e44dd0122cc4e532206bad01a25629deac3d9f.tar.xz monzero-core-84e44dd0122cc4e532206bad01a25629deac3d9f.zip | |
tests: Fix tools::is_hdd unit tests
Correct the unit tests for tools::is_hdd to avoid making assumptions
about the configuration of a particular device based solely on the
value of the __GLIBC__ preprocessor flag. Instead, rely on the
test invoker to provide paths for devices of specific types via
the process environment, thereby avoiding faulty assumptions and
improving the specificity of test assertions. To ensure appropriate
devices exist, add a script, tests/create_test_disks.sh, which
configures loopback devices mirroring relevant configurations.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26b2505df..6f7840dd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -163,6 +163,8 @@ jobs: run: ${{env.APT_INSTALL_LINUX}} - name: install Python dependencies run: pip install requests psutil monotonic zmq deepdiff + - name: create dummy disk drives for testing + run: tests/create_test_disks.sh >> $GITHUB_ENV - name: tests env: CTEST_OUTPUT_ON_FAILURE: ON |
