Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'ktest-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest

Pull ktest update from Steven Rostedt:

- Fix failure of directory of log file not existing

If a LOG_FILE option is set for ktest to log its messages, and the
directory path does not exist. Then ktest fails. Have ktest attempt
to create the directory where the log file exists and if that
succeeds continue on testing.

* tag 'ktest-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
ktest: Fix Test Failures Due to Missing LOG_FILE Directories

+8
+8
tools/testing/ktest/ktest.pl
··· 4303 4303 if ($opt{"CLEAR_LOG"}) { 4304 4304 unlink $opt{"LOG_FILE"}; 4305 4305 } 4306 + 4307 + if (! -e $opt{"LOG_FILE"} && $opt{"LOG_FILE"} =~ m,^(.*/),) { 4308 + my $dir = $1; 4309 + if (! -d $dir) { 4310 + mkpath($dir) or die "Failed to create directories '$dir': $!"; 4311 + print "\nThe log directory $dir did not exist, so it was created.\n"; 4312 + } 4313 + } 4306 4314 open(LOG, ">> $opt{LOG_FILE}") or die "Can't write to $opt{LOG_FILE}"; 4307 4315 LOG->autoflush(1); 4308 4316 }