Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
monitoring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
monitoring
Commits
6bc53c8c
Commit
6bc53c8c
authored
6 months ago
by
Luca Weiss
Browse files
Options
Downloads
Patches
Plain Diff
test_upstream_compat: Use more f-strings
parent
7603f41c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test_upstream_compat.py
+5
-6
5 additions, 6 deletions
test_upstream_compat.py
with
5 additions
and
6 deletions
test_upstream_compat.py
+
5
−
6
View file @
6bc53c8c
...
...
@@ -58,8 +58,7 @@ def test_qt_versions(args):
# Compare
if
pkgver
==
pkgver_upstream
:
continue
failed
.
append
(
pkgname
+
"
:
"
+
pkgver
+
"
!=
"
+
pkgver_upstream
)
failed
.
append
(
f
"
{
pkgname
}
:
{
pkgver
}
!=
{
pkgver_upstream
}
"
)
assert
[]
==
failed
...
...
@@ -97,13 +96,13 @@ def test_aportgen_versions(args):
continue
# Compare the version
print
(
"
Checking
"
+
path
)
print
(
f
"
Checking
{
path
}
"
)
apkbuild
=
pmb
.
parse
.
apkbuild
(
path
)
version
=
apkbuild
[
"
pkgver
"
]
+
"
-r
"
+
apkbuild
[
"
pkgrel
"
]
if
version
!=
version_upstream
:
failed
.
append
(
apkbuild
[
"
pkgname
"
]
+
"
:
"
+
version
+
"
!=
"
+
version_upstream
+
"
(from
"
+
pkgname
+
"
)
"
)
failed
.
append
(
f
"
{
apkbuild
[
"
pkgname
"
]
}
:
{
version
}
!=
{
version_upstream
}
(from
{
pkgname
}
)
"
)
continue
assert
[]
==
failed
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment