mirror of https://github.com/MISP/MISP
fix: [build] Build test fix
parent
2d063b15ff
commit
aaaccd1678
|
@ -6,7 +6,7 @@ set -o xtrace
|
||||||
python ./../app/files/scripts/mispzmq/mispzmqtest.py
|
python ./../app/files/scripts/mispzmq/mispzmqtest.py
|
||||||
|
|
||||||
# Check if all attachments handlers dependencies are correctly installed
|
# Check if all attachments handlers dependencies are correctly installed
|
||||||
python ./../app/files/scripts/generate_file_objects.py -c | python3 -c 'import sys, json; data = json.load(sys.stdin); print(data); sys.exit(0 if len([i for i in data.values() if i == True]) == 0 else 1)'
|
python ./../app/files/scripts/generate_file_objects.py -c | python3 -c 'import sys, json; data = json.load(sys.stdin); print(data); sys.exit(0 if len([i for i in data.values() if i is not False]) == 0 else 1)'
|
||||||
|
|
||||||
# Try to extract data from file
|
# Try to extract data from file
|
||||||
python ./../app/files/scripts/generate_file_objects.py -p /bin/ls
|
python ./../app/files/scripts/generate_file_objects.py -p /bin/ls
|
||||||
|
|
|
@ -9,7 +9,7 @@ with open(requirements_file) as f:
|
||||||
req_version = re.findall('pymisp==(.*)', f.read())[0]
|
req_version = re.findall('pymisp==(.*)', f.read())[0]
|
||||||
|
|
||||||
with open(app_controller) as f:
|
with open(app_controller) as f:
|
||||||
controler_version = re.findall('pyMispVersion = \'(.*)\'', f.read())[0]
|
controller_version = re.findall('pyMispVersion = \'(.*)\'', f.read())[0]
|
||||||
|
|
||||||
if not req_version == controler_version:
|
if not req_version == controller_version:
|
||||||
raise Exception(f'PyMISP in {requirements_file} ({req_version}) differs from the one in {app_controller} ({controler_version})')
|
raise Exception(f'PyMISP in {requirements_file} ({req_version}) differs from the one in {app_controller} ({controller_version})')
|
||||||
|
|
Loading…
Reference in New Issue