Merge tag 'trace-rv-v7.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull runtime verification fix from Steven Rostedt:

 - Use .old instead of .bak for rvgen kunit backup files

   The rvgen kunit command generates .bak backup files and these are
   checked in for selftests as "golden" files for make check. But
   'make distclean' removes such files, leaving the tree dirty.

   Switch to .old to preserve a clean tree after make disclean.

* tag 'trace-rv-v7.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  verification/rvgen: Use .old instead of .bak for kunit backup files
This commit is contained in:
Linus Torvalds
2026-08-26 14:47:22 -07:00
2 changed files with 1 additions and 1 deletions

View File

@@ -173,7 +173,7 @@ EXPORT_SYMBOL_IF_KUNIT({struct_name});
for path in (header_file_path, kunit_c_file_path):
if path.exists():
try:
path.rename(path.with_suffix(path.suffix + ".bak"))
path.rename(path.with_suffix(path.suffix + ".old"))
except OSError as e:
raise KUnitError(f"Error backing up file {path}: {e}") from e