diff --git a/build.xml b/build.xml
index d80d23eac0ba018be6f8e63a8b605d4ac1023801..251be2bb6b0862d1dd6b4cbb689c6420cf94cd55 100644
--- a/build.xml
+++ b/build.xml
@@ -67,7 +67,7 @@
 
   <!-- PHP copy-and-paste detection -->
   <target name="phpcpd">
-    <exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude ${srcdir}/module/VuFind/tests/* ${srcdir}/module" />
+    <exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude ${srcdir}/module/VuFind/tests/unit-tests/src/Auth ${srcdir}/module" />
   </target>
 
   <!-- PHP CodeSniffer -->