--- a/common/build.xml Fri Aug 14 13:57:01 2009 +0100
+++ b/common/build.xml Fri Aug 14 14:02:48 2009 +0100
@@ -712,28 +712,37 @@
<arg value="${build.drive}/output/zips/bin*.zip"/>
</exec>
</target>
+
+ <target name="sf-find-ATS-worker-root">
+ <exec executable="perl" dir="${sf.common.config.dir}/tools/ats/devices" failonerror="false" outputproperty="sf.spec.test.workerroot">
+ <arg value="-pe"/>
+ <arg value=""m/TEMPDIR=(\S+)/;print $1;s/.*\n//g""/>
+ <arg value="${env.COMPUTERNAME}\EMULATOR_GENERIC_${env.COMPUTERNAME}.properties" />
+ </exec>
+ <echo message="ATS Worker Root = ${sf.spec.test.workerroot}"/>
+ </target>
- <target name ="sf-make-junction">
+ <target name ="sf-make-junction" depends="sf-find-ATS-worker-root">
- <mkdir dir="${sf.spec.test.epocroot}"/>
+ <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}"/>
<exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_make_junction.log">
<arg value="make_junction.pl"/>
- <arg value="--link=${sf.spec.test.epocroot}/epoc32"/>
+ <arg value="--link=${sf.spec.test.workerroot}/${sf.spec.test.epocroot}/epoc32"/>
<arg value="--target=${build.drive}/epoc32"/>
<arg value="--force"/>
</exec>
</target>
- <target name ="sf-delete-junction">
- <exec executable="junction.exe" dir="${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
+ <target name ="sf-delete-junction" depends="sf-find-ATS-worker-root">
+ <exec executable="junction.exe" dir="${sf.spec.test.workerroot}/${sf.spec.test.epocroot}" failonerror="false" output="${build.log.dir}/ATS_${build.id}_delete_junction.log">
<arg value="-d"/>
<arg value="epoc32"/>
</exec>
</target>
-
- <target name="sf-send-testpkg" depends="sf-make-junction">
- <mkdir dir="${sf.spec.test.package.droppath}"/>
+
+ <target name="sf-send-testpkg" depends="sf-find-ATS-worker-root,sf-make-junction">
+ <mkdir dir="${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
<echo message="Sending test package ${sf.spec.test.package.name} to ${sf.spec.test.host.name} path ${sf.spec.test.host.droppath}"/>
<exec executable="perl" dir="${sf.common.config.dir}/tools/ats" failonerror="false" output="${build.log.dir}/ATS_${build.id}_testdrop.log">
<arg value="ats3_testdrop.pl"/>
@@ -741,7 +750,7 @@
<arg value="--username=${sf.spec.test.host.username}"/>
<arg value="--password=${sf.spec.test.host.password}"/>
<arg value="--local-test-pkg=${sf.spec.test.package.location}\${sf.spec.test.package.name}"/>
- <arg value="--local-drop-path=${sf.spec.test.package.droppath}"/>
+ <arg value="--local-drop-path=${sf.spec.test.workerroot}/${sf.spec.test.package.droppath}"/>
<arg value="--host-drop-path=${sf.spec.test.host.droppath}"/>
</exec>
</target>