File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1111- Add project overview docs
1212- Improve clock performance
1313- Make install.sh args more flexible
14+ - Improve Windows detection allowing parallel tests on Git Bash, MSYS and Cygwin
1415
1516## [ 0.20.0] ( https://github.com/TypedDevs/bashunit/compare/0.19.1...0.20.0 ) - 2025-06-01
1617
Original file line number Diff line number Diff line change @@ -41,7 +41,14 @@ function check_os::is_macos() {
4141}
4242
4343function check_os::is_windows() {
44- [[ " $( uname) " == * " MINGW" * ]]
44+ case " $( uname) " in
45+ * MINGW* |* MSYS* |* CYGWIN* )
46+ return 0
47+ ;;
48+ * )
49+ return 1
50+ ;;
51+ esac
4552}
4653
4754function check_os::is_busybox() {
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ function test_detect_windows_os() {
5252function window_linux_variations() {
5353 echo " MINGW"
5454 echo " junkMINGWjunk"
55+ echo " MSYS_NT-10.0"
56+ echo " junkMSYSjunk"
57+ echo " CYGWIN_NT-10.0"
58+ echo " junkCYGWINjunk"
5559}
5660
5761function test_alpine_is_busybox() {
You can’t perform that action at this time.
0 commit comments