Skip to content

Feature: Add case stress help function support - #5

Closed
Bin-QA wants to merge 1 commit into
thesofproject:masterfrom
Bin-QA:stress
Closed

Bin-QA wants to merge 1 commit into
thesofproject:masterfrom
Bin-QA:stress

Conversation

@Bin-QA

@Bin-QA Bin-QA commented Dec 18, 2019

Copy link
Copy Markdown
Contributor

case/lib.sh to add func_lib_trigger_stress
which detect current script run from local/remote
to keep script can run finish when lost the remote connect

Signed-off-by: Wu, BinX binx.wu@intel.com

@xiulipan xiulipan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some simple questions inline.

Comment thread case-lib/lib.sh Outdated
# now output current process with tail command
clear
tail -f $STRESS_OUTPUT_LOG
# TODO: need to verify with S3 status to confirm script block

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Intend here.

Comment thread case-lib/lib.sh Outdated

touch $STRESS_OUTPUT_LOG
touch $STRESS_STATUS_LOG
[ ! -f $LOG_ROOT/cmd-orig.txt ] && cp $LOG_ROOT/cmd.txt $LOG_ROOT/cmd-orig.txt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It may good to add some comments here to explain why cp is needed here.

Comment thread case-lib/lib.sh
func_lib_trigger_stress()
{
export LOG_ROOT=$LOG_ROOT
STRESS_OUTPUT_LOG="$LOG_ROOT/stress.txt"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we have some iteration index here in the log files? Or this will contain full round stress test logs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

because it have different stress type
So here I write for the reboot case, it will trigger this function after each time system reboot
But from the S3, I think this type case just to trigger this function once
So maybe add status control function in it?

case/lib.sh to add func_lib_trigger_stress
which detect current script run from local/remote
to keep script can run finish when lost the remote connect

Signed-off-by: Wu, BinX <binx.wu@intel.com>
@Bin-QA

Bin-QA commented Jan 2, 2020

Copy link
Copy Markdown
Contributor Author

This change is not the requirement with case design, so close it

@Bin-QA Bin-QA closed this Jan 2, 2020
@Bin-QA
Bin-QA deleted the stress branch January 14, 2020 07:51
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