Skip to content

Commit

Permalink
peel cli tests need to run in parallel for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Nov 26, 2024
1 parent 2576dde commit 1512d70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/cli/peel/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::{fs::File, io::Write as _};

use approx::assert_abs_diff_eq;
use clap::Parser as _;
use serial_test::serial;
use tempfile::tempdir;

use crate::{
Expand Down Expand Up @@ -58,6 +59,7 @@ fn get_merged_1090008640(extra_argv: Vec<String>) -> PeelParams {
// --output-vis-freq-average - output averaging settings

#[test]
#[serial]
fn frequency_averaging_defaults() {
let PeelParams {
input_vis_params: InputVisParams { spw: input_spw, .. },
Expand All @@ -78,6 +80,7 @@ fn frequency_averaging_defaults() {
}

#[test]
#[serial]
fn frequency_averaging_explicit_output() {
let PeelParams {
input_vis_params: InputVisParams { spw: input_spw, .. },
Expand All @@ -98,6 +101,7 @@ fn frequency_averaging_explicit_output() {
}

#[test]
#[serial]
fn frequency_averaging_explicit_output_iono() {
let PeelParams {
input_vis_params: InputVisParams { spw: input_spw, .. },
Expand All @@ -121,6 +125,7 @@ fn frequency_averaging_explicit_output_iono() {
}

#[test]
#[serial]
fn frequency_averaging_explicit_in_out() {
let PeelParams {
input_vis_params: InputVisParams { spw: input_spw, .. },
Expand All @@ -145,6 +150,7 @@ fn frequency_averaging_explicit_in_out() {
}

#[test]
#[serial]
fn frequency_averaging_explicit() {
let PeelParams {
input_vis_params: InputVisParams { spw: input_spw, .. },
Expand All @@ -171,6 +177,7 @@ fn frequency_averaging_explicit() {
// in this case the input data is 2s but there's only one timestep, so the
// time res will be clipped to 2s
#[test]
#[serial]
fn time_averaging_explicit_output_clip() {
let PeelParams {
input_vis_params: InputVisParams { time_res, .. },
Expand Down

0 comments on commit 1512d70

Please sign in to comment.