Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/firecracker
Path: blob/main/tests/integration_tests/style/test_markdown.py
1958 views
1
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
# SPDX-License-Identifier: Apache-2.0
3
"""Tests for markdown style checks."""
4
5
import framework.utils as utils
6
7
8
def test_markdown_style():
9
"""Fail if there's misbehaving markdown style in the test system."""
10
# Get all *.md files from the project
11
md_files = utils.get_files_from(
12
find_path="..",
13
pattern="*.md",
14
exclude_names=["build"])
15
16
# Assert if somehow no markdown files were found.
17
assert len(md_files) != 0
18
19
# Run commands
20
cmd = "mdl -c ../.mdlrc "
21
for fname in md_files:
22
cmd += fname + " "
23
_, output, _ = utils.run_cmd(cmd)
24
assert output == ""
25
26