Skip to content

Pts #42

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

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open

Pts #42

wants to merge 22 commits into from

Conversation

sousinha97
Copy link

No description provided.

@dvalinrh
Copy link
Contributor

dvalinrh commented Jan 13, 2025

I think what we want to do, to simplify the code is to create test option file, with override ability at the command line for the test.

So something like this

File

sub test name:
option name: value
option 1 name: value
option 2 name: value
...

If no overrides are given, we will use the options for the test. We can mandate that the order of the options follow that of the sub test request for input.

If an over ride is desired, then something like this

--test_option_override test name:option_name:value,.................

@sousinha97 sousinha97 added the pr_review [Automatic Label] Issue has a PR that needs review label Feb 11, 2025
@dvalinrh dvalinrh self-requested a review February 25, 2025 13:20
@@ -109,6 +115,7 @@ if [ ! -d "test_tools" ]; then
git clone $tools_git test_tools
if [ $? -ne 0 ]; then
error_out "Error pulling git $tools_git" 1
exit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required, error out exits

if [ $move_back -eq 1 ]; then
mv /tmp/perf $move_this
fi
exit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rtc code please.

*)
echo option not found $1
usage
exit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed usage exits out with rtc 1

;;
--usage)
usage
exit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed, usage exits with rtc 1.

if [[ -n "${options[$key]}" ]]; then
options[$key]=$values
else
echo "Unknown option: $key"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use error_out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr_review [Automatic Label] Issue has a PR that needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants