summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStevan Andjelkovic <stevan@advancedtelematic.com>2016-03-29 13:06:54 +0200
committerStevan Andjelkovic <stevan@advancedtelematic.com>2016-03-29 16:28:28 +0200
commitbaf66588ce1da5925f5651f05dc3a9862cf2efa0 (patch)
treeb61297bc9c6f5d8ebf830708657783703b30d636 /tests
parent0562e2a7c6648f2c407750ddd58bfda81a491863 (diff)
downloadrvi_sota_client-baf66588ce1da5925f5651f05dc3a9862cf2efa0.tar.gz
Add --package-manager flag.
Diffstat (limited to 'tests')
-rw-r--r--tests/ota_plus_client_tests.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ota_plus_client_tests.rs b/tests/ota_plus_client_tests.rs
index 49f4b13..c13554e 100644
--- a/tests/ota_plus_client_tests.rs
+++ b/tests/ota_plus_client_tests.rs
@@ -45,8 +45,9 @@ Options:
--ota-vin VIN change ota vin
--ota-packages-dir PATH
change downloaded directory for packages
+ --ota-package-manager MANAGER
+ change package manager
--test-looping enable read-interpret test loop
- --test-fake-pm enable fake package manager for testing
"#);
@@ -89,3 +90,9 @@ fn bad_path_dir() {
assert_eq!(client(&["--config=/"]),
"Failed to load config: Is a directory (os error 21)\n")
}
+
+#[test]
+fn bad_package_manager() {
+ assert_eq!(client(&["--ota-package-manager=apa"]),
+ "Invalid package manager: apa\n")
+}