Skip to content

Commit 8192199

Browse files
committed
ts: skip cache build/use on Cygwin
filesystem on Cygwin platform is responding in an unexpected way. Newly created files for the tests are considered "limited access" which should not be the case, considering that umask is 0022. Skip these cache build and use tests on Cygwin platform for now
1 parent 39e8e94 commit 8192199

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

testsuite/config/base-config.exp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,3 +1474,11 @@ proc skip_if_quick_mode {} {
14741474
return -code 0 -level 2 0
14751475
}
14761476
}
1477+
1478+
proc skip_if_os_in {args} {
1479+
if {$::os_name in $args} {
1480+
send_user "\tSkipping tests for '$::os_name' OS\n"
1481+
reset_test_env
1482+
return -code 0 -level 2 0
1483+
}
1484+
}

testsuite/modules.30-cache/030-cachebuild.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#
2121
##############################################################################
2222

23+
# filesystem on Cygwin platform is responding in an unexpected way
24+
# skip these tests on this platform for now
25+
skip_if_os_in cygwin
2326

2427
# no modulepath defined
2528
unsetenv_path_var MODULEPATH

testsuite/modules.30-cache/031-cachebuild-full.exp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#
2121
##############################################################################
2222

23+
# filesystem on Cygwin platform is responding in an unexpected way
24+
# skip these tests on this platform for now
25+
skip_if_os_in cygwin
26+
2327
skip_if_quick_mode
2428

2529
# ensure avail tests are made using in depth mode

testsuite/modules.30-cache/032-cachebuild-limited-access.exp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#
2121
##############################################################################
2222

23+
# filesystem on Cygwin platform is responding in an unexpected way
24+
# skip these tests on this platform for now
25+
skip_if_os_in cygwin
26+
2327
skip_if_quick_mode
2428

2529
setenv_path_var MODULEPATH $mp1

testsuite/modules.30-cache/040-cache-use.exp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#
2121
##############################################################################
2222

23+
# filesystem on Cygwin platform is responding in an unexpected way
24+
# skip these tests on this platform for now
25+
skip_if_os_in cygwin
26+
2327
# ensure avail tests are made using in depth mode
2428
setenv_var MODULES_AVAIL_INDEPTH 1
2529

0 commit comments

Comments
 (0)