Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge main into photos-export-hardlinks-review

Manav Rathibc788e816fda
diff --cc rust/apps/cli-next/tests/cli.rs
index d2dee8e0f8,b088eb71a0..549fc79c60
--- a/rust/apps/cli-next/tests/cli.rs
+++ b/rust/apps/cli-next/tests/cli.rs
@@@ -35,8 -35,16 +35,18 @@@ fn reads_do_not_initialize_storage()
assert!(help.contains("Usage: ente-cli-next [OPTIONS] <COMMAND>"));
assert!(help.contains(&format!("=== {binary} photos file download ===")));
assert!(help.contains(&format!("=== {binary} vault key generate ===")));
+ assert!(help.contains("--hardlinks"));
+ assert!(help.contains("Linked files share contents, timestamps and permissions."));
+ assert!(help.contains(&format!("=== {binary} account token ===")));
+ for command in ["login", "token"] {
+ let missing_app = home
+ .command(&["account", command])
+ .env("ENTE_CLI_VAULT_KEY", "invalid")
+ .output()
+ .unwrap();
+ assert!(failure(&missing_app).contains("--app <APP>"));
+ assert!(missing_app.stdout.is_empty());
+ }
let output = home
.command(&["accounts", "list"])
.env("ENTE_CLI_HOME", &path)