summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-09-08 05:51:10 +0300
committerLars Wirzenius <liw@liw.fi>2023-09-08 05:51:10 +0300
commitc0d0785944442f497f92963964f941415163c414 (patch)
tree32805b26ea3871a4189845ef1f8919b660113620 /check
parent5168420454b92205c13224a6801d3341d7f0c3d3 (diff)
downloadsubplot-c0d0785944442f497f92963964f941415163c414.tar.gz
tests: don't run website example in --offline mode
This allows tests to run in an environment without external networking. Sponsored-by: author
Diffstat (limited to 'check')
-rwxr-xr-xcheck3
1 files changed, 2 insertions, 1 deletions
diff --git a/check b/check
index 710232c..58407aa 100755
--- a/check
+++ b/check
@@ -269,7 +269,8 @@ def check_subplots(r):
lambda f: f == f.lower() and "subplotlib" not in f and "test-outputs" not in f,
)
if r.offline:
- subplots = [s for s in subplots if s != "reference.subplot"]
+ r.msg("Only testing subplot.subplot due to --offline")
+ subplots = ["subplot.subplot"]
for subplot0 in subplots:
r.title(f"checking subplot {subplot0}")