Skip to content

Commit

Permalink
tst_test.sh: lib: Print tested kernel and arch
Browse files Browse the repository at this point in the history
Similarly to previous commit this helps reviewing tests posted on ML or
github issue (reporters sometimes don't include this info). Use
'uname -a' (print more info than what is printed in C API).

Missing 'uname' binary (or busybox symlink) does not break test (just
the output is mangled), thus 'uname' presence is not tested/required.

Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Avinesh Kumar <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Aug 21, 2024
1 parent eb0a536 commit a406d92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testcases/lib/tst_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ if [ -z "$TST_NO_DEFAULT_RUN" ]; then
TST_ARGS="$@"

tst_res TINFO "Running: $(basename $0) $TST_ARGS"
tst_res TINFO "Tested kernel: $(uname -a)"

OPTIND=1

Expand Down

0 comments on commit a406d92

Please sign in to comment.