summaryrefslogtreecommitdiff
path: root/tests/util
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-23 19:00:48 -0400
committerGitHub <noreply@github.com>2024-07-23 19:00:48 -0400
commit9114a2df69da9318c4e10887553b7daf77b0fa16 (patch)
tree2309817e74485f9fe8f7b79238afa026070b79df /tests/util
parent6055629ee7f48a4e887392ccac13788aa4008249 (diff)
fix(upgrade): do not error if config in cwd invalid (#24689)
``` > deno upgrade error: Unsupported lockfile version 'invalid'. Try upgrading Deno or recreating the lockfile. V:\scratch > V:\deno\target\debug\deno upgrade Looking up latest version Local deno version 1.45.3 is the most recent release ``` Closes #24517 Closes #20729
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/server/src/fs.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/util/server/src/fs.rs b/tests/util/server/src/fs.rs
index 558d25ffb..fc27e4485 100644
--- a/tests/util/server/src/fs.rs
+++ b/tests/util/server/src/fs.rs
@@ -256,6 +256,13 @@ impl PathRef {
}
#[track_caller]
+ pub fn mark_executable(&self) {
+ if cfg!(unix) {
+ Command::new("chmod").arg("+x").arg(self).output().unwrap();
+ }
+ }
+
+ #[track_caller]
pub fn make_dir_readonly(&self) {
self.create_dir_all();
if cfg!(windows) {