Skip to content

Commit

Permalink
tests: Restic output test should only try to backup a subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Dec 11, 2024
1 parent 8735931 commit c3ababa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_restic_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import sys
import os
from pathlib import Path
import shutil
import re
import json
import tempfile
Expand All @@ -29,6 +28,7 @@
sys.path.insert(0, os.path.abspath(os.path.join(__file__, os.pardir, os.pardir)))
from npbackup.restic_metrics import *
from npbackup.core.restic_source_binary import get_restic_internal_binary
from npbackup.path_helper import BASEDIR

restic_json_outputs = {}
restic_json_outputs[
Expand Down Expand Up @@ -187,7 +187,7 @@ def test_real_restic_output():
f"{restic_binary} init --repository-version 2", live_output=True
)
# Just backend current directory
cmd = f"{restic_binary} backup {api_arg} ."
cmd = f"{restic_binary} backup {api_arg} {Path(BASEDIR).joinpath('npbackup')}"
exit_code, output = command_runner(cmd, timeout=600, live_output=True)
assert exit_code == 0, "Failed to run restic"
if not api_arg:
Expand Down

0 comments on commit c3ababa

Please sign in to comment.