From 346fecb04aa41fc5154b5281d51975a4c474798e Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Sun, 27 Jul 2025 12:52:40 +0200 Subject: [PATCH] test: skip --init option tests for nixos --- CHANGELOG.md | 4 ++++ tests/acceptance/bashunit_init_test.sh | 8 ++++++++ 2 files changed, 12 insertions(+) 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"