diff --git a/.gitignore b/.gitignore
index f2b525e489fb19ebe955784a816fb48e224cb510..380ebab9d3c8fecac0d47432beb237aa8fced867 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,7 @@
 /tests/test_cksum_service
 /tests/test_f2003
 /tests/test_resource_copy_mpi_run
+/tests/*.log
 /util/serialrun
 Makefile
 
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 3ee72a97171fc7686270857cddc0b427b7c8d1da..081b52329904567242d9381f180e5a3a1f4c55f9 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -63,7 +63,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src
 #
 EXTRA_DIST = test_cdf_write.c test_cdf_read.c
 #
-CLEANFILES  = `ls *~ *.grb *.nc *.nc4 *.srv *.ext example_*.cksum`
+CLEANFILES  = `ls *~ *.grb *.nc *.nc4 *.srv *.ext example_*.cksum *.log`
 #
 AUTOMAKE_OPTIONS = color-tests
 #