Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package 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
pmbootstrap
Commits
71efba71
Unverified
Commit
71efba71
authored
3 years ago
by
Alexey Minnekhanov
Browse files
Options
Downloads
Patches
Plain Diff
test/test_helpers_package: use armv7 instead of armhf (MR 2054)
parent
2a80bbdb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_helpers_package.py
+7
-7
7 additions, 7 deletions
test/test_helpers_package.py
with
7 additions
and
7 deletions
test/test_helpers_package.py
+
7
−
7
View file @
71efba71
...
...
@@ -24,7 +24,7 @@ def test_helpers_package_get_pmaports_and_cache(args, monkeypatch):
# Fake APKBUILD data
def
stub
(
args
,
pkgname
,
must_exist
):
return
{
"
arch
"
:
[
"
arm
hf
"
],
return
{
"
arch
"
:
[
"
arm
v7
"
],
"
depends
"
:
[
"
testdepend
"
],
"
pkgname
"
:
"
testpkgname
"
,
"
provides
"
:
[
"
testprovide
"
],
...
...
@@ -36,24 +36,24 @@ def test_helpers_package_get_pmaports_and_cache(args, monkeypatch):
"
pkgrel
"
:
"
1
"
}
monkeypatch
.
setattr
(
pmb
.
helpers
.
pmaports
,
"
get
"
,
stub
)
package
=
{
"
arch
"
:
[
"
arm
hf
"
],
package
=
{
"
arch
"
:
[
"
arm
v7
"
],
"
depends
"
:
[
"
testdepend
"
],
"
pkgname
"
:
"
testpkgname
"
,
"
provides
"
:
[
"
testprovide
"
],
"
version
"
:
"
1.0-r1
"
}
func
=
pmb
.
helpers
.
package
.
get
assert
func
(
args
,
"
testpkgname
"
,
"
arm
hf
"
)
==
package
assert
func
(
args
,
"
testpkgname
"
,
"
arm
v7
"
)
==
package
# Cached result
monkeypatch
.
delattr
(
pmb
.
helpers
.
pmaports
,
"
get
"
)
assert
func
(
args
,
"
testpkgname
"
,
"
arm
hf
"
)
==
package
assert
func
(
args
,
"
testpkgname
"
,
"
arm
v7
"
)
==
package
def
test_helpers_package_get_apkindex
(
args
,
monkeypatch
):
"""
Test pmb.helpers.package.get(): find in apkindex
"""
# Fake APKINDEX data
fake_apkindex_data
=
{
"
arch
"
:
"
arm
hf
"
,
fake_apkindex_data
=
{
"
arch
"
:
"
arm
v7
"
,
"
depends
"
:
[
"
testdepend
"
],
"
pkgname
"
:
"
testpkgname
"
,
"
provides
"
:
[
"
testprovide
"
],
...
...
@@ -66,13 +66,13 @@ def test_helpers_package_get_apkindex(args, monkeypatch):
monkeypatch
.
setattr
(
pmb
.
parse
.
apkindex
,
"
package
"
,
stub
)
# Given arch
package
=
{
"
arch
"
:
[
"
arm
hf
"
],
package
=
{
"
arch
"
:
[
"
arm
v7
"
],
"
depends
"
:
[
"
testdepend
"
],
"
pkgname
"
:
"
testpkgname
"
,
"
provides
"
:
[
"
testprovide
"
],
"
version
"
:
"
1.0-r1
"
}
func
=
pmb
.
helpers
.
package
.
get
assert
func
(
args
,
"
testpkgname
"
,
"
arm
hf
"
)
==
package
assert
func
(
args
,
"
testpkgname
"
,
"
arm
v7
"
)
==
package
# Other arch
assert
func
(
args
,
"
testpkgname
"
,
"
x86_64
"
)
==
package
...
...
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