Test commands

This commit is contained in:
Einar Forselv 2019-11-25 21:21:17 +01:00
parent d910c62c62
commit a61452fd91
2 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -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):
"""