Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Report][Added] Expand relative paths to specific outputs #761

Merged
merged 3 commits into from
Jan 3, 2025

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 [Report][Added] Expand relative paths to specific outputs 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants