Skip to content

Commit b7598aa

Browse files
[PyT] Install pytest in onnx L1 test as Pyt container no longer packages it (NVIDIA#2781)
Install pytest in onnx L1 test as Pyt container no longer packages it Signed-off-by: Kshitij Janardan Lakhani <klakhani@nvidia.com>
1 parent 15760a5 commit b7598aa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

qa/L1_pytorch_onnx_unittest/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
#
33
# See LICENSE for license information.
44

5+
function error_exit() {
6+
echo "Error: $1"
7+
exit 1
8+
}
9+
510
: ${TE_PATH:=/opt/transformerengine}
611
: ${XML_LOG_DIR:=/logs}
712
mkdir -p "$XML_LOG_DIR"
813

14+
pip3 install pytest==8.2.1 || error_exit "Failed to install pytest"
915
# NVTE_UnfusedDPA_Emulate_FP8=1 enables FP8 attention emulation when no native backend is available
1016
NVTE_UnfusedDPA_Emulate_FP8=1 python3 -m pytest --tb=auto --junitxml=$XML_LOG_DIR/test_onnx_export.xml $TE_PATH/tests/pytorch/test_onnx_export.py

0 commit comments

Comments
 (0)