Skip to content

Commit 70baf93

Browse files
authored
#996: Disable Python Integration Test for MacOS and Ubuntu (#1011)
1 parent ec2724b commit 70baf93

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

scripts/src/test/bash/functions-test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,19 @@ function doWarning() {
2020
function doError() {
2121
echo -e "\033[91m${1}\033[39m"
2222
}
23+
24+
function doIsMacOs() {
25+
if [ "${OSTYPE:0:6}" = "darwin" ]
26+
then
27+
return
28+
fi
29+
return 255
30+
}
31+
32+
function doIsWindows() {
33+
if [ "${OSTYPE}" = "cygwin" ] || [ "${OSTYPE}" = "msys" ]
34+
then
35+
return
36+
fi
37+
return 255
38+
}
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
22

33
source "$(dirname "${0}")"/functions-test
4-
doCommandTest az
4+
if doIsWindows
5+
then
6+
doCommandTest az
7+
else
8+
echo "The integration-test for az is currently disabled for MacOS and Linux systems"
9+
exit 0
10+
fi
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
22

33
source "$(dirname "${0}")"/functions-test
4-
doCommandTest pip
4+
if doIsWindows
5+
then
6+
doCommandTest pip
7+
else
8+
echo "The integration-test for pip is currently disabled for MacOS and Linux systems"
9+
exit 0
10+
fi
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
22

33
source "$(dirname "${0}")"/functions-test
4-
doCommandTest python
4+
if doIsWindows
5+
then
6+
doCommandTest python
7+
else
8+
echo "The integration-test for python is currently disabled for MacOS and Linux systems"
9+
exit 0
10+
fi

0 commit comments

Comments
 (0)