fix pdbgen.sh when scale < host_num
record Finished time in test.sh