Skip to content

Commit

Permalink
Updates L0 Python API tests to run all test files
Browse files Browse the repository at this point in the history
This makes it so that when new test files are added in the core repo,
we don't need to update this script.
  • Loading branch information
pranavm-nvidia committed Nov 23, 2024
1 parent 1bc36c3 commit f706218
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions qa/L0_python_api/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,17 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

BINDING_TEST_LOG="./python_binding.log"
SERVER_TEST_LOG="./python_test.log"

RET=0

rm -f $BINDING_TEST_LOG
rm -f $SERVER_TEST_LOG

set +e

python -m pytest --junitxml=test_binding_report.xml test_binding.py > $BINDING_TEST_LOG 2>&1
python -m pytest --junitxml=test_server.xml . > $SERVER_TEST_LOG 2>&1
if [ $? -ne 0 ]; then
cat $BINDING_TEST_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi

API_TEST_LOG="./python_api.log"

python -m pytest --junitxml=test_api_report.xml test_api.py > $API_TEST_LOG 2>&1
if [ $? -ne 0 ]; then
cat $API_TEST_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi


FRONTEND_TEST_LOG="./python_kserve.log"
python -m pytest --junitxml=test_kserve.xml test_kserve.py > $FRONTEND_TEST_LOG 2>&1
if [ $? -ne 0 ]; then
cat $FRONTEND_TEST_LOG
cat $SERVER_TEST_LOG
echo -e "\n***\n*** Test Failed\n***"
RET=1
fi
Expand Down

0 comments on commit f706218

Please sign in to comment.