fix the test case problem
This commit is contained in:
parent
79b147da1c
commit
14e822cfda
Binary file not shown.
Binary file not shown.
7
pkgship.spec
Normal file → Executable file
7
pkgship.spec
Normal file → Executable file
@ -10,7 +10,7 @@ BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-flask-restful python3-flask python3 python3-pyyaml python3-sqlalchemy
|
||||
BuildRequires: python3-prettytable python3-requests python3-flask-session python3-flask-script python3-marshmallow
|
||||
BuildRequires: python3-pandas python3-dateutil python3-XlsxWriter python3-xlrd python3-Flask-APScheduler python3-retrying
|
||||
BuildRequires: python3-Flask-APScheduler python3-pandas python3-retrying python3-xlrd python3-XlsxWriter
|
||||
Requires: python3-pip python3-flask-restful python3-flask python3 python3-pyyaml
|
||||
Requires: python3-sqlalchemy python3-prettytable python3-requests
|
||||
Requires: python3-pyinstaller python3-flask-session python3-flask-script python3-marshmallow python3-uWSGI
|
||||
@ -30,10 +30,13 @@ Pkgship implements rpm package dependence ,maintainer, patch query and so no.
|
||||
|
||||
|
||||
%check
|
||||
export TZ=Asia/Shanghai
|
||||
# change log_path to solve default log_path permission denied problem
|
||||
log_path=`pwd`/tmp/
|
||||
sed -i "/\[LOG\]/a\log_path=$log_path" test/common_files/package.ini
|
||||
%{__python3} -m unittest test/run_tests.py
|
||||
%{__python3} -m unittest test/init_test.py
|
||||
%{__python3} -m unittest test/read_test.py
|
||||
%{__python3} -m unittest test/write_test.py
|
||||
rm -rf $log_path
|
||||
|
||||
%post
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user