Skip to content

Commit

Permalink
more codacy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 28, 2019
1 parent 04c33a0 commit cf96820
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
10 changes: 8 additions & 2 deletions tests/cunit/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ for TEST in $PIO_TESTS
do
success1=false
echo "running ${TEST}"
mpiexec -n 4 ./${TEST} && success1=true || break
mpiexec -n 4 ./${TEST} && success1=true
if test $success1 = false; then
break
fi
done

PIO_TESTS_8='test_async_multi2'
Expand All @@ -34,7 +37,10 @@ for TEST in $PIO_TESTS_8
do
success2=false
echo "running ${TEST}"
mpiexec -n 8 ./${TEST} && success2=true || break
mpiexec -n 8 ./${TEST} && success2=true
if test $success2 = false; then
break
fi
done

# Did we succeed?
Expand Down
7 changes: 3 additions & 4 deletions tests/cunit/test_darray_multivar3.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,8 @@ int main(int argc, char **argv)
{
int my_rank;
int ntasks;
int num_flavors; /* Number of PIO netCDF flavors in this build. */
int flavor[NUM_FLAVORS]; /* iotypes for the supported netCDF IO flavors. */
MPI_Comm test_comm; /* A communicator for this test. */
int ioid;
int dim_len_2d[NDIM2] = {X_DIM_LEN, Y_DIM_LEN};
int ret; /* Return code. */

/* Initialize test. */
Expand All @@ -297,7 +294,9 @@ int main(int argc, char **argv)
int iosysid; /* The ID for the parallel I/O system. */
int ioproc_stride = 1; /* Stride in the mpi rank between io tasks. */
int ioproc_start = 0; /* Zero based rank of first processor to be used for I/O. */
int ret; /* Return code. */
int dim_len_2d[NDIM2] = {X_DIM_LEN, Y_DIM_LEN};
int num_flavors; /* Number of PIO netCDF flavors in this build. */
int flavor[NUM_FLAVORS]; /* iotypes for the supported netCDF IO flavors. */

/* Figure out iotypes. */
if ((ret = get_iotypes(&num_flavors, flavor)))
Expand Down

0 comments on commit cf96820

Please sign in to comment.