Test non-zero exit code
This commit is contained in:
parent
30e2a669cd
commit
ac7237faa8
|
@ -77,7 +77,12 @@ def start_backup_process(config, containers):
|
||||||
|
|
||||||
print("start-backup-process")
|
print("start-backup-process")
|
||||||
status(config, containers)
|
status(config, containers)
|
||||||
|
import time
|
||||||
|
for i in range(5):
|
||||||
|
time.sleep(1)
|
||||||
|
print(i)
|
||||||
|
|
||||||
|
exit(1)
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(prog='restic_volume_backup')
|
parser = argparse.ArgumentParser(prog='restic_volume_backup')
|
||||||
|
|
Loading…
Reference in New Issue