mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-27 08:13:37 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user