Skip to content

Commit

Permalink
Fix t09_repo:IncludeRepo3Test failing
Browse files Browse the repository at this point in the history
The output of the template parser seems to have changed with go 1.20
  • Loading branch information
reglim committed May 15, 2023
1 parent a3dc541 commit 1c7a168
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion system/t09_repo/IncludeRepo3Test_gold
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ERROR: error parsing -repo template: template: repo:1: unexpected "}" in operand; missing space?
ERROR: error parsing -repo template: template: repo:1: bad character U+007D '}'
10 changes: 4 additions & 6 deletions system/t09_repo/include.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import tempfile
import shutil
import os
import inspect
import os
import re
import shutil
import tempfile

from lib import BaseTest


Expand Down Expand Up @@ -68,9 +69,6 @@ class IncludeRepo3Test(BaseTest):
runCmd = "aptly repo include -no-remove-files -keyring=${files}/aptly.pub -repo=my-{{.Distribution} ${changes}"
expectedCode = 1

def outputMatchPrepare(_, s):
return s.replace('; missing space?', '')


class IncludeRepo4Test(BaseTest):
"""
Expand Down

0 comments on commit 1c7a168

Please sign in to comment.