Test commands
This commit is contained in:
parent
d910c62c62
commit
a61452fd91
|
@ -95,8 +95,11 @@ def start_backup_process(config, containers):
|
|||
|
||||
# Waste a few seconds faking a backup
|
||||
print("Fake backup running")
|
||||
|
||||
# restic.test()
|
||||
|
||||
import time
|
||||
for i in range(5):
|
||||
for i in range(3):
|
||||
time.sleep(1)
|
||||
logger.info('test')
|
||||
print(i)
|
||||
|
|
|
@ -3,6 +3,11 @@ from subprocess import Popen, PIPE
|
|||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def test():
|
||||
run_command(['pwd'])
|
||||
run_command(['ls', '-l'])
|
||||
run_command(['ls', '/backup'])
|
||||
|
||||
|
||||
def init_repo(repository):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue