Skip to content

Commit 23a2d4c

Browse files
committed
ktest.pl: Always display BUILD_DIR and OUTPUT_DIR at the start of tests
As ktest.pl can run in various different directories, to make sure the test is running in the proper directory with the proper source and proper destination directory, display the content of BUILD_DIR and OUTPUT_DIR at the start of every test. This can be helpful for the test runner to stop the test if a test is running in the wrong location instead of finding out after the test has completed. Cc: "John Warthog9 Hawley" <[email protected]> Cc: Dhaval Giani <[email protected]> Cc: Greg KH <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Steven Rostedt <[email protected]>
1 parent 61f7e31 commit 23a2d4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/ktest/ktest.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4539,6 +4539,10 @@ sub die_usage {
45394539

45404540
doprint "RUNNING TEST $i of $opt{NUM_TESTS}$name with option $test_type $run_type$installme\n\n";
45414541

4542+
# Always show which build directory and output directory is being used
4543+
doprint "BUILD_DIR=$builddir\n";
4544+
doprint "OUTPUT_DIR=$outputdir\n\n";
4545+
45424546
if (defined($pre_test)) {
45434547
my $ret = run_command $pre_test;
45444548
if (!$ret && defined($pre_test_die) &&

0 commit comments

Comments
 (0)