You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Clean only when a test uses refresh. This allows for child processes to
110
+
// use the tmpdir and only the parent will clean on exit.
111
+
process.on('exit',onexit);
112
+
}
113
+
}
114
+
115
+
functiononexit(){
116
+
// Change directory to avoid possible EBUSY
117
+
if(isMainThread)
118
+
process.chdir(testRoot);
119
+
120
+
try{
121
+
rimrafSync(tmpPath,{spawn: false});
122
+
}catch(e){
123
+
console.error('Can\'t clean tmpdir:',tmpPath);
124
+
125
+
constfiles=fs.readdirSync(tmpPath);
126
+
console.error('Files blocking:',files);
127
+
128
+
if(files.some((f)=>f.startsWith('.nfs'))){
129
+
// Warn about NFS "silly rename"
130
+
console.error('Note: ".nfs*" might be files that were open and '+
131
+
'unlinked but not closed.');
132
+
console.error('See http://nfs.sourceforge.net/#faq_d2 for details.');
0 commit comments