Skip to content

Commit

Permalink
support testing on borg pre-release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Aug 5, 2024
1 parent 213ed32 commit a1446ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Add missing dependency command line options to pytest command.

import os
import re
import pytest
from inform import Error, Info as CmdLineOpts
from shlib import Run, set_prefs
Expand Down Expand Up @@ -28,6 +29,9 @@ def dependency_options(request):
raise SystemExit
borg_version = borg.stdout
borg_version = borg_version.split()[-1]
borg_version = borg_version.partition('a')[0] # strip off alpha version
borg_version = borg_version.partition('b')[0] # strip off beta version
borg_version = borg_version.partition('rc')[0] # strip off release candidate version
borg_version = tuple(int(i) for i in borg_version.split('.'))
options.borg_version = borg_version

Expand Down

0 comments on commit a1446ff

Please sign in to comment.