lntest: add a new basedir flag to keep test data

This commit is contained in:
yyforyongyu committed 2025-06-23 17:29:26 +08:00
1 parent 0d20e96e96
commit 343ae963b0
2 files changed
+37 -5

No files matched your search

+7
View File
@@ -794,6 +794,13 @@ func (hn *HarnessNode) Shutdown() error {
if err := hn.Stop(); err != nil {
return err
}
// Exit if we want to skip the cleanup, which happens when a customized
// base dir is used.
if hn.Cfg.SkipCleanup {
return nil
}
if err := hn.cleanup(); err != nil {
return err
}