File size: 468 Bytes
4a0c408
 
 
 
 
 
1
2
3
4
5
6
7
from pathlib import Path
import argparse,sys
sys.path.insert(0,str(Path(__file__).resolve().parent/'validation_engine'))
from validate_products import validate
p=argparse.ArgumentParser();p.add_argument('--source-root',type=Path,required=True);p.add_argument('--release',type=Path,default=Path(__file__).resolve().parent);a=p.parse_args()
r=validate(a.release,a.source_root,'Scientific-Answer-Ranking');print(r);raise SystemExit(0 if r['status']=='PASS' else 1)