From 7c6df3cb0a55faa80e2a27c2b6115aba24a48892 Mon Sep 17 00:00:00 2001 From: MET Tools Test Account Date: Wed, 13 Dec 2023 19:22:53 +0000 Subject: [PATCH] Per #2761, patching test_util.R to use the -C command line option for ncdiff. I did test running comp_dir.sh with this change and confirmed that it now runs to completion. --- internal/test_unit/R_test/test_util.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/test_unit/R_test/test_util.R b/internal/test_unit/R_test/test_util.R index 7d83360ecd..3d4a2d3f9b 100644 --- a/internal/test_unit/R_test/test_util.R +++ b/internal/test_unit/R_test/test_util.R @@ -696,7 +696,7 @@ compareNc = function(nc1, nc2, verb, strict=0, delta=-1, comp_var=0){ } # build and run the ncdiff command - strCmd = paste(strNcDiffExec, " -x -v time_bounds \\\n ", nc1, " \\\n ", nc2, " \\\n ", strNcDiff, sep=""); + strCmd = paste(strNcDiffExec, " -C -x -v time_bounds \\\n ", nc1, " \\\n ", nc2, " \\\n ", strNcDiff, sep=""); if( 2 <= verb ){ cat("NCDIFF:", strCmd, "\n"); } strCmdOut = system(paste(strCmd, "2>&1"), intern=T);