Skip to content

Commit 1512d70

Browse files
committed
peel cli tests need to run in parallel for some reason
1 parent 2576dde commit 1512d70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cli/peel/tests.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::{fs::File, io::Write as _};
22

33
use approx::assert_abs_diff_eq;
44
use clap::Parser as _;
5+
use serial_test::serial;
56
use tempfile::tempdir;
67

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

6061
#[test]
62+
#[serial]
6163
fn frequency_averaging_defaults() {
6264
let PeelParams {
6365
input_vis_params: InputVisParams { spw: input_spw, .. },
@@ -78,6 +80,7 @@ fn frequency_averaging_defaults() {
7880
}
7981

8082
#[test]
83+
#[serial]
8184
fn frequency_averaging_explicit_output() {
8285
let PeelParams {
8386
input_vis_params: InputVisParams { spw: input_spw, .. },
@@ -98,6 +101,7 @@ fn frequency_averaging_explicit_output() {
98101
}
99102

100103
#[test]
104+
#[serial]
101105
fn frequency_averaging_explicit_output_iono() {
102106
let PeelParams {
103107
input_vis_params: InputVisParams { spw: input_spw, .. },
@@ -121,6 +125,7 @@ fn frequency_averaging_explicit_output_iono() {
121125
}
122126

123127
#[test]
128+
#[serial]
124129
fn frequency_averaging_explicit_in_out() {
125130
let PeelParams {
126131
input_vis_params: InputVisParams { spw: input_spw, .. },
@@ -145,6 +150,7 @@ fn frequency_averaging_explicit_in_out() {
145150
}
146151

147152
#[test]
153+
#[serial]
148154
fn frequency_averaging_explicit() {
149155
let PeelParams {
150156
input_vis_params: InputVisParams { spw: input_spw, .. },
@@ -171,6 +177,7 @@ fn frequency_averaging_explicit() {
171177
// in this case the input data is 2s but there's only one timestep, so the
172178
// time res will be clipped to 2s
173179
#[test]
180+
#[serial]
174181
fn time_averaging_explicit_output_clip() {
175182
let PeelParams {
176183
input_vis_params: InputVisParams { time_res, .. },

0 commit comments

Comments
 (0)