Skip to content

Commit b2aa3ab

Browse files
authored
Merge pull request #458 from TypedDevs/test/skip-init-for-nixos
Skip --init option tests for NixOS
2 parents 35fba18 + 346fecb commit b2aa3ab

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- Skip `--init` option tests for NixOS
6+
37
## [0.22.3](https://github.com/TypedDevs/bashunit/compare/0.22.2...0.22.3) - 2025-07-27
48

59
- Fix NixOS support

tests/acceptance/bashunit_init_test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ function tear_down() {
1414
}
1515

1616
function test_bashunit_init_creates_structure() {
17+
if check_os::is_nixos; then
18+
skip && return
19+
fi
20+
1721
# switch into a clean temporary directory
1822
pushd "$TMP_DIR" >/dev/null
1923
# generate test scaffolding
@@ -26,6 +30,10 @@ function test_bashunit_init_creates_structure() {
2630
}
2731

2832
function test_bashunit_init_custom_directory() {
33+
if check_os::is_nixos; then
34+
skip && return
35+
fi
36+
2937
pushd "$TMP_DIR" >/dev/null
3038
../../bashunit --init custom > /tmp/init.log
3139
assert_file_exists "custom/example_test.sh"

0 commit comments

Comments
 (0)