Skip to content

Conversation

@nguyen-v
Copy link

@nguyen-v nguyen-v commented Jan 3, 2025

This PR adds to the report output a new expansion pattern ${<output_name>_outpath_<index>} (index optional, starts at 1), which returns the relative path between the generated report file and the output. This is useful for creating README files or other files that need a relative path to a specific file.

Example configuration:
https://github.com/nguyen-v/KiBot/blob/report_out_path/tests/yaml_samples/report_output_path.kibot.yaml

With this template:
https://github.com/nguyen-v/KiBot/blob/report_out_path/tests/data/report_output_path.txt

Generates:
https://github.com/nguyen-v/KiBot/blob/report_out_path/tests/reference/5_1_7/light_control-report_output_path_1.txt
https://github.com/nguyen-v/KiBot/blob/report_out_path/tests/reference/5_1_7/light_control-report_output_path_2.txt

@nguyen-v nguyen-v changed the title [Report][Added] Expand output relative paths Jan 3, 2025
@set-soft
Copy link
Member

set-soft commented Jan 3, 2025

Please use symlinks for the reference files, they are all the same, so keep one and link the others.

@set-soft set-soft merged commit 179266c into INTI-CMNB:dev Jan 3, 2025
17 checks passed
@nguyen-v nguyen-v deleted the report_out_path branch January 3, 2025 16:14
@nguyen-v nguyen-v restored the report_out_path branch January 3, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants