From ac7237faa8a96848f37201ece9a2a89534c25d74 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Thu, 18 Apr 2019 07:22:07 +0200 Subject: [PATCH] Test non-zero exit code --- restic_volume_backup/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/restic_volume_backup/cli.py b/restic_volume_backup/cli.py index 4dd2e2b..5c0673a 100644 --- a/restic_volume_backup/cli.py +++ b/restic_volume_backup/cli.py @@ -77,7 +77,12 @@ def start_backup_process(config, containers): print("start-backup-process") status(config, containers) + import time + for i in range(5): + time.sleep(1) + print(i) + exit(1) def parse_args(): parser = argparse.ArgumentParser(prog='restic_volume_backup')