Simplify GitLab CI configuration, attempt to fix upload/download test

This commit is contained in:
timvisee 2018-11-21 22:44:22 +01:00
parent d32333616b
commit 059a0d85c5
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
2 changed files with 4 additions and 4 deletions

View file

@ -113,8 +113,8 @@ public-send-test:
script:
# Generate random file, upload/download and assert equality
- "head -c16m </dev/urandom >testfile"
- "./ffsend upload testfile -n testfile.bin -a -d 10 -p secret -I"
- "./ffsend download $(./ffsend history -q) -p secret -I -o downloadfile"
- "./ffsend upload testfile -d=10 -p=secret -I"
- "./ffsend download $(./ffsend history -q) -p=secret -I -o=downloadfile"
- "cmp --silent ./testfile ./downloadfile || (echo ERROR: Downloaded file is different than original; exit 1)"
# Cargo crate release

View file

@ -136,10 +136,10 @@ fn invoke_action(handler: &Handler) -> Result<(), Error> {
}
// Get the main matcher
let main_matcher = MainMatcher::with(handler.matches()).unwrap();
let matcher_main = MainMatcher::with(handler.matches()).unwrap();
// Print the main info and return
if !main_matcher.quiet() {
if !matcher_main.quiet() {
print_main_info();
}
Ok(())