diff --git a/test/spec/generate_spec.py b/test/spec/generate_spec.py index b1ed0173..10279a05 100755 --- a/test/spec/generate_spec.py +++ b/test/spec/generate_spec.py @@ -1,7 +1,6 @@ #!/bin/env python3 import os import ast -import graphviz import argparse import io import sys @@ -9,15 +8,47 @@ import re from pathlib import Path -# Define a custom NodeVisitor to extract the arguments +import graphviz + +def replace_image_tag(text, test_dir): + """ + Convert images added in the description and replace with the required ifdefs to work + generating the test specifcation as well. + """ + + pattern = r"image::(?P\S+)\[(?P