tests: fix regex used for replacing "# Generated by rust2rpm NNN"
This commit is contained in:
parent
ff04186184
commit
f6cac07c8d
4 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@
|
|||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# Generated by rust2rpm 22
|
||||
# Generated by rust2rpm NNN
|
||||
%bcond_without check
|
||||
|
||||
%global crate cxx-build
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# Generated by rust2rpm 22
|
||||
# Generated by rust2rpm NNN
|
||||
%bcond_without check
|
||||
|
||||
%global crate nix
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# Generated by rust2rpm 22
|
||||
# Generated by rust2rpm NNN
|
||||
%bcond_without check
|
||||
|
||||
%global crate tokio
|
||||
|
|
|
@ -70,7 +70,7 @@ def test_spec(tomlfile, target, tmpdir):
|
|||
crate = tomlfile.with_suffix("").name
|
||||
|
||||
spec = mock_spec_file_render(crate, tomlfile, target, tmpdir)
|
||||
spec = re.sub("^(# Generated by rust2rpm) .*", r"\1 NNN", spec)
|
||||
spec = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", spec)
|
||||
|
||||
if os.getenv("SAVE_SPECS") == "1":
|
||||
# helper mode to create test data
|
||||
|
|
Loading…
Reference in a new issue