Skip to content

Commit

Permalink
tests: adapt systemtest to new subscription output
Browse files Browse the repository at this point in the history
- filter Estimate sentence in testrunner
- add additionnal resulting blank line in expected output

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
  • Loading branch information
bruno-at-bareos authored and BareosBot committed Sep 21, 2023
1 parent 46d1043 commit fd57538
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Expand Up @@ -13,3 +13,4 @@ Backup unit totals:
configured: 10
remaining: 9


Expand Up @@ -8,4 +8,5 @@ Amount of data that cannot be categorized for backup units yet:
unknown_percentage:



quit
Expand Up @@ -5,3 +5,4 @@ Backup unit totals:
configured: 10
remaining: 9


Expand Up @@ -37,7 +37,7 @@ END_OF_DATA
run_bconsole

# remove lines starting with @ so output is comparable
sed -i'.bak' -e '/^@/d' -e '/^Bareos version:/d' -e '/^Binary info:/d' -e '/^Report time:/d' -e '/^Checksum:/d' "$tmp"/status-subscription*.txt
sed -i'.bak' -e '/^@/d' -e '/^Bareos version:/d' -e '/^Binary info:/d' -e '/^Report time:/d' -e '/^Checksum:/d' -e "/^Estimate only./d" "$tmp"/status-subscription*.txt

for f in status-subscriptions status-subscriptions-detail status-subscriptions-unknown; do
if ! diff -u expected/$f.txt "$tmp/$f.txt"; then
Expand Down

0 comments on commit fd57538

Please sign in to comment.