diff --git a/hudson-sflphone-script.sh b/hudson-sflphone-script.sh
index 412ea00cbd1cddf424f74096c1ad0616c8a52c24..b406027be3b5b3c07033a825828056d9840c32bc 100755
--- a/hudson-sflphone-script.sh
+++ b/hudson-sflphone-script.sh
@@ -4,6 +4,8 @@
 #
 # Author: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
 
+XML_RESULTS="cppunitresults.xml"
+
 set -x
  
 # Compile the daemon
@@ -23,6 +25,8 @@ popd
 
 # Run the unit tests for the daemon
 pushd sflphone-common/test
+# Remove the previous XML test file
+rm -rf $(XML_RESULTS)
 make check
 # if at least one test failed, exit
 ./test --xml || exit 1