mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
scripts: test_send_qa_email: fix broken tests
Commit 1dc77f5908
("scripts: send_qa_email: add dry-run mode") updated
the get_regression_base_and_target to allow it to receive a test result
url. Unfortunately, this function's tests have not been updated
accordingly, so they currently fail because of the missing parameter.
Add a default url in test case and update the function call with this
default value.
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
dac3e4cc06
commit
9e961637ba
|
@ -42,6 +42,8 @@ class TestVersion(unittest.TestCase):
|
|||
{"input": None, "expected":False}
|
||||
]
|
||||
|
||||
test_results_url = "git://git.yoctoproject.org/yocto-testresults"
|
||||
|
||||
# This data represent real data returned by utils.getcomparisonbranch
|
||||
# and the release argument passed to send-qa-email script
|
||||
regression_inputs = [
|
||||
|
@ -76,7 +78,12 @@ class TestVersion(unittest.TestCase):
|
|||
for data in self.regression_inputs:
|
||||
with self.subTest(data['name']):
|
||||
base, target = send_qa_email.get_regression_base_and_target(
|
||||
data['input']['targetbranch'], data['input']['basebranch'], data['input']['release'], os.environ.get("POKY_PATH"), log)
|
||||
data['input']['targetbranch'],
|
||||
data['input']['basebranch'],
|
||||
data['input']['release'],
|
||||
os.environ.get("POKY_PATH"),
|
||||
self.test_results_url,
|
||||
log)
|
||||
expected_base, expected_target = data["expected"]
|
||||
# The comparison base can not be set statically in tests when it is supposed to be the previous tag,
|
||||
# since the result will depend on current tags
|
||||
|
|
Loading…
Reference in New Issue
Block a user