Direct ACVP test execution discards pytest's failure status
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- cryptography, testing
Línea de trabajo
Lee test/test_acvp.py, especialmente el bloque main cerca de la línea 193, y comprueba la rama actual para confirmar el comportamiento y si ya está corregido. Ejecuta el archivo directamente con un caso ACVP que pase y otro que falle deliberadamente; después, verifica los códigos de salida del proceso y que las ejecuciones de pytest mediante importación funcionen con normalidad. Se considera terminado cuando la ejecución directa devuelve cero si tiene éxito y un valor distinto de cero si falla.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The following misuse was identified in a pinned snapshot of IBM/mlca. The observation is limited to that snapshot; the current branch, intended contract, reachability, and any existing fixes should be checked.
- Pinned source: test/test_acvp.py
Problem
The direct entry point at test/test_acvp.py:193 calls pytest.main(sys.argv) without using its return code. If a PQ KEM or signature known-answer assertion fails, pytest records the failure internally but the script then reaches normal process completion with status zero. Automation invoking the file directly can therefore accept a failed ACVP suite as a successful command; running the same tests through an imported pytest session does not have this discarded-exit-status problem.
Suggested fix
Use raise SystemExit(pytest.main(sys.argv)) or sys.exit with the returned code in the main block. Add subprocess tests for one passing and one deliberately failing ACVP case, verifying exit statuses zero and nonzero respectively while preserving normal imported pytest behavior.
This issue was drafted with AI assistance.
- Lenguaje dominante
- C
- Estrellas
- 5
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
area9innovation/flow9#1805 ·
Los mantenedores suelen responder en 3 días
-
AI:Robustness triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
open5gs/open5gs#5246 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
NuttX CMake source list does not remove posix_memmap.cPosiblemente ocupada @ventureli la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
wasm-micro-runtime/wasm-micro-runtime#5239 ·
Los mantenedores suelen responder en 2 días
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execAbiertobug rust SDK & CLI & REST API
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
boxlite-ai/boxlite#3292 ·
Los mantenedores suelen responder en 1 día
-
bug game: 0400486024DEC000 mac nvn shader chain
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
seedds/nxnative#3675 · 1 comentario ·
Los mantenedores suelen responder en 2 días