diff --git a/Code/Mantid/Kernel/test/runTests.sh b/Code/Mantid/Kernel/test/runTests.sh
index fbe9b02bb0474276c0294784b65a24bd6dcb4507..d014d88cd4acc8591b2b481953aed50977e42d51 100755
--- a/Code/Mantid/Kernel/test/runTests.sh
+++ b/Code/Mantid/Kernel/test/runTests.sh
@@ -18,15 +18,15 @@ echo "Generating the source file from the test header files..."
 # Chaining all tests together can have effects that you don't think of
 #  - it's always a good idea to run your new/changed test on its own
 if [ $# -eq 0 ]; then
-	cxxtestgen.pl --error-printer -o runner.cpp *.h
+	../../../Third_Party/src/cxxtest/cxxtestgen.py --error-printer -o runner.cpp *.h
 else
-	cxxtestgen.pl --error-printer -o runner.cpp $*
+	../../../Third_Party/src/cxxtest/cxxtestgen.py --error-printer -o runner.cpp $*
 fi
 echo
 
 echo "Compiling the test executable..."
 g++ -O0 -g3 -o runner.exe runner.cpp -I ../inc -I ../../../Third_Party/include \
-            -L ../../debug -L ../../Build -lMantidKernel
+            -I ../../../Third_Party/src/cxxtest -L ../../debug -L ../../Build -lMantidKernel
 echo
 
 echo "Running the tests..."