Exclude windows curl tests on Linux CI.

This commit is contained in:
jcamiel 2022-01-28 09:23:50 +01:00 committed by Fabrice Reix
parent 39410eea0f
commit 022d970c53
3 changed files with 15 additions and 7 deletions

View File

@ -40,7 +40,7 @@ jobs:
pip3 install lxml bs4 --quiet
echo "================= Integration tests ================="
python3 ./integration.py
./test_curl_commands.sh tests/*.curl
./test_curl_commands.sh $(find ./tests -maxdepth 1 -type f -name '*.curl' ! -name '*windows*')
python3 ./test_html_output.py tests/*.html
xmllint --noout tests/*.html
- store_artifacts:

View File

@ -127,7 +127,7 @@ jobs:
cd integration
pip install lxml bs4
./integration.py
./test_curl_commands.sh tests/*.curl
./test_curl_commands.sh $(find ./tests -maxdepth 1 -type f -name '*.curl' ! -name '*windows*')
./test_html_output.py tests/*.html
xmllint --noout tests/*.html
./report.sh

View File

@ -34,10 +34,18 @@ def get_os():
def test(hurl_file):
options_file = hurl_file.replace('.hurl','.options')
curl_file = hurl_file.replace('.hurl','.curl')
json_output_file = hurl_file.replace('.hurl','.output.json')
profile_file = hurl_file.replace('.hurl','.profile')
options_file = hurl_file.replace('.hurl', '.options')
# For .curl file, we can have specific os expected file in order to test
# os differences like included path (/ vs \ path components separator)
os_curl_file = hurl_file.replace('.hurl', '.' + get_os() + '.curl')
if os.path.exists(os_curl_file):
curl_file = os_curl_file
else:
curl_file = hurl_file.replace('.hurl', '.curl')
json_output_file = hurl_file.replace('.hurl', '.output.json')
profile_file = hurl_file.replace('.hurl', '.profile')
options = []
if os.path.exists(options_file):