diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f0722aa..8b14c14c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Skip `--init` option tests for NixOS + ## [0.22.3](https://github.com/TypedDevs/bashunit/compare/0.22.2...0.22.3) - 2025-07-27 - Fix NixOS support diff --git a/tests/acceptance/bashunit_init_test.sh b/tests/acceptance/bashunit_init_test.sh index 6e387a11..e15bee17 100644 --- a/tests/acceptance/bashunit_init_test.sh +++ b/tests/acceptance/bashunit_init_test.sh @@ -14,6 +14,10 @@ function tear_down() { } function test_bashunit_init_creates_structure() { + if check_os::is_nixos; then + skip && return + fi + # switch into a clean temporary directory pushd "$TMP_DIR" >/dev/null # generate test scaffolding @@ -26,6 +30,10 @@ function test_bashunit_init_creates_structure() { } function test_bashunit_init_custom_directory() { + if check_os::is_nixos; then + skip && return + fi + pushd "$TMP_DIR" >/dev/null ../../bashunit --init custom > /tmp/init.log assert_file_exists "custom/example_test.sh"