mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-23 11:02:43 +03:00
Exclude windows curl tests on Linux CI.
This commit is contained in:
parent
39410eea0f
commit
022d970c53
@ -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:
|
||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -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
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user