| |
@@ -54,7 +54,15 @@
|
| |
if with_autochangelog:
|
| |
contents.append("%autochangelog")
|
| |
else:
|
| |
- contents.extend(["* Thu Jan 01 1970 Some Name <email@example.com>", "- some entry"])
|
| |
+ contents.extend(
|
| |
+ [
|
| |
+ "* Fri Jan 02 1970 Some Name <email@example.com>",
|
| |
+ "- This %autorelease should be ignored.",
|
| |
+ "",
|
| |
+ "* Thu Jan 01 1970 Some Name <email@example.com>",
|
| |
+ "- some entry",
|
| |
+ ]
|
| |
+ )
|
| |
|
| |
print("\n".join(contents), file=specfile)
|
| |
specfile.flush()
|
| |
@@ -73,7 +81,7 @@
|
| |
pytest.param(
|
| |
True, True, "-b 200", True, True, id="with non standard base release number, braces"
|
| |
),
|
| |
- pytest.param(False, False, "", False, False, id="nothing"),
|
| |
+ pytest.param(False, False, "", True, False, id="nothing"),
|
| |
),
|
| |
)
|
| |
@pytest.mark.parametrize("specpath_type", (str, Path))
|
| |
@@ -96,9 +104,6 @@
|
| |
with_autochangelog=with_autochangelog,
|
| |
)
|
| |
|
| |
- specfile.seek(0)
|
| |
- contents = specfile.read() # noqa
|
| |
-
|
| |
features = misc.check_specfile_features(specpath_type(specfile.name))
|
| |
|
| |
assert features.has_autorelease == bool(with_autorelease)
|
| |
In the course, remove some stray debugging statements in a test.
Fixes: #270
Signed-off-by: Nils Philippsen nils@redhat.com