mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
runtime verification fix for 7.3:
- 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. Clean make disclean removes such files, leaving the tree dirty. Switch to .old to preserve a clean tree after make disclean. -----BEGIN PGP SIGNATURE----- iIoEABYKADIWIQRRSw7ePDh/lE+zeZMp5XQQmuv6qgUCao80ThQccm9zdGVkdEBn b29kbWlzLm9yZwAKCRAp5XQQmuv6qphQAQC/B9JUq0aHC/xcPyR+4kFG13jykotd h/0xV1e6nyExigEAtzx4Lc/JnUzXPVpmtabzOGHwMTklbDl9bfnZtOdEmQo= =MY27 -----END PGP SIGNATURE----- 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:
commit
b035a8be20
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user