From 52d1b4536527cb413a183dda27298e43c72922f6 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 24 Oct 2020 19:34:08 -0700 Subject: [PATCH] add a home for test cases that are only relevant to run in CI Related to #1851. --- .gitlab-ci.yml | 4 ++-- ci/tests.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 ci/tests.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00dc0b46b..6f477613c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,7 +149,7 @@ portable-source: # The following is per https://gitlab.com/graphviz/graphviz/-/merge_requests/1345 $env:Path = $env:CI_PROJECT_DIR + "\" + $env:configuration + "\Graphviz\bin" + ";" + $env:Path; } - - python3 -m pytest --junitxml=report.xml tests rtest + - python3 -m pytest --junitxml=report.xml ci/tests.py tests rtest # Create artifacts to archive - $ID = "windows" - $VERSION_ID = "10" @@ -180,7 +180,7 @@ portable-source: - ci/install-packages.sh - export GV_VERSION=$( cat VERSION ) - export OS_ID=$( cat OS_ID ) - - python3 -m pytest --junitxml=report.xml tests rtest + - python3 -m pytest --junitxml=report.xml ci/tests.py tests rtest artifacts: reports: junit: ./report.xml diff --git a/ci/tests.py b/ci/tests.py new file mode 100644 index 000000000..279cc98e1 --- /dev/null +++ b/ci/tests.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +''' +test cases that are only relevant to run in CI +''' + +def test_stub(): + ''' + a no-op test case to allow pytest to accept this file at first + ''' + pass -- 2.40.0