first commit
This commit is contained in:
commit
cd1e91bb99
287 changed files with 86425 additions and 0 deletions
29
rasta_exp/tester/adagio_tester.py
Normal file
29
rasta_exp/tester/adagio_tester.py
Normal file
|
@ -0,0 +1,29 @@
|
|||
from .abstract_tester import abstract_tester
|
||||
import utils
|
||||
import error_collector as errors
|
||||
import datetime
|
||||
from typing import Type
|
||||
from pathlib import Path
|
||||
|
||||
class adagio_tester(abstract_tester):
|
||||
EXPECTED_ERROR_TYPES: list = [errors.PythonError]
|
||||
TOOL_NAME = 'adagio'
|
||||
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
|
||||
@classmethod
|
||||
def check_success(cls, path: Path, apk_filename: str):
|
||||
"""Check if the analysis finished without crashing."""
|
||||
apks = list(path.glob("*.apk"))
|
||||
if len(apks) != 1:
|
||||
raise RuntimeError(
|
||||
# FIXME: do not raise in check_success. Return False instead
|
||||
f"Expected to found exactly 1 apk in the root of artifact folder, found {apks}"
|
||||
)
|
||||
apk = apks[0]
|
||||
path_result = path / utils.sha256_sum(apk).lower()
|
||||
return path_result.exists()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue