test(lesavka): avoid display sink in CI media smoke

This commit is contained in:
Brad Stein 2026-05-19 05:15:03 -03:00
parent fabe7c2a76
commit 6ed8386140
2 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ mod video_sinks {
#[serial]
fn build_hdmi_sink_respects_env_override_success_path() {
init_gst();
with_var("LESAVKA_HDMI_SINK", Some("autovideosink"), || {
with_var("LESAVKA_HDMI_SINK", Some("fakesink"), || {
let sink = build_hdmi_sink(&cfg(CameraCodec::H264));
assert!(sink.is_ok(), "known override sink should build");
});
@ -210,7 +210,7 @@ mod video_sinks {
#[test]
#[serial]
fn camera_sink_dispatch_is_stable_for_hdmi_variant() {
with_var("LESAVKA_HDMI_SINK", Some("autovideosink"), || {
with_var("LESAVKA_HDMI_SINK", Some("fakesink"), || {
if let Ok(sink) = HdmiSink::new(&cfg(CameraCodec::Mjpeg)) {
let cam_sink = CameraSink::Hdmi(sink);
cam_sink.push(VideoPacket {
@ -242,7 +242,7 @@ mod video_sinks {
#[serial]
fn camera_relay_feed_covers_dev_mode_dump_branch_without_panicking() {
with_var("LESAVKA_DEV_MODE", Some("1"), || {
with_var("LESAVKA_HDMI_SINK", Some("autovideosink"), || {
with_var("LESAVKA_HDMI_SINK", Some("fakesink"), || {
if let Ok(relay) = CameraRelay::new_hdmi(3, &cfg(CameraCodec::H264)) {
relay.feed(VideoPacket {
id: 3,

View File

@ -41,7 +41,7 @@ fn webcam_sink_constructor_is_stable_for_missing_uvc_device() {
#[test]
#[serial]
fn hdmi_sink_constructor_and_push_are_stable_with_override() {
with_var("LESAVKA_HDMI_SINK", Some("autovideosink"), || {
with_var("LESAVKA_HDMI_SINK", Some("fakesink"), || {
let cfg = hdmi_config(CameraCodec::H264);
match HdmiSink::new(&cfg) {
Ok(sink) => sink.push(VideoPacket {
@ -58,7 +58,7 @@ fn hdmi_sink_constructor_and_push_are_stable_with_override() {
#[test]
#[serial]
fn camera_relay_hdmi_constructor_and_feed_are_stable() {
with_var("LESAVKA_HDMI_SINK", Some("autovideosink"), || {
with_var("LESAVKA_HDMI_SINK", Some("fakesink"), || {
let cfg = hdmi_config(CameraCodec::Mjpeg);
match CameraRelay::new_hdmi(7, &cfg) {
Ok(relay) => relay.feed(VideoPacket {
@ -105,7 +105,7 @@ fn webcam_sink_h264_constructor_path_is_stable() {
#[test]
#[serial]
fn hdmi_sink_mjpeg_constructor_path_is_stable() {
with_var("LESAVKA_HDMI_SINK", Some("autovideosink"), || {
with_var("LESAVKA_HDMI_SINK", Some("fakesink"), || {
let cfg = hdmi_config(CameraCodec::Mjpeg);
match HdmiSink::new(&cfg) {
Ok(sink) => sink.push(VideoPacket {