Skip to content

Commit

Permalink
#996: Disable Python Integration Test for MacOS and Ubuntu (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfeilex authored Dec 19, 2022
1 parent ec2724b commit 70baf93
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
16 changes: 16 additions & 0 deletions scripts/src/test/bash/functions-test
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,19 @@ function doWarning() {
function doError() {
echo -e "\033[91m${1}\033[39m"
}

function doIsMacOs() {
if [ "${OSTYPE:0:6}" = "darwin" ]
then
return
fi
return 255
}

function doIsWindows() {
if [ "${OSTYPE}" = "cygwin" ] || [ "${OSTYPE}" = "msys" ]
then
return
fi
return 255
}
8 changes: 7 additions & 1 deletion scripts/src/test/bash/integration-test-az
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

source "$(dirname "${0}")"/functions-test
doCommandTest az
if doIsWindows
then
doCommandTest az
else
echo "The integration-test for az is currently disabled for MacOS and Linux systems"
exit 0
fi
8 changes: 7 additions & 1 deletion scripts/src/test/bash/integration-test-pip
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

source "$(dirname "${0}")"/functions-test
doCommandTest pip
if doIsWindows
then
doCommandTest pip
else
echo "The integration-test for pip is currently disabled for MacOS and Linux systems"
exit 0
fi
8 changes: 7 additions & 1 deletion scripts/src/test/bash/integration-test-python
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/bin/bash

source "$(dirname "${0}")"/functions-test
doCommandTest python
if doIsWindows
then
doCommandTest python
else
echo "The integration-test for python is currently disabled for MacOS and Linux systems"
exit 0
fi

0 comments on commit 70baf93

Please sign in to comment.