
30 Nov
2020
30 Nov
'20
5:36 p.m.
if user define his own stats and puts his stats file to tbox by use submit -a or other method, he should exec stats in test scripts by himself. Signed-off-by: Wei Jihui <weijihuiall@163.com> --- lib/job.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/job.sh b/lib/job.sh index b84e6b18..03c49e0a 100755 --- a/lib/job.sh +++ b/lib/job.sh @@ -313,3 +313,10 @@ run_test() fi } +# user can run self-define stats by: +# run_target_stats $(basename $0) +run_target_stats() +{ + local script_name=$1 + $LKP_SRC/stats/$script_name < $TMP_RESULT_ROOT/$script_name > $TMP_RESULT_ROOT/$script_name.json +} -- 2.23.0