@junmin-zhu , I double checked buildbot's general test step, it normally passes two params ```target``` and ```build-dir```, you can refer http://wrt-build.sh.intel.com/buildbot/builders/CrossWalk%28Linux%29/builds/325/steps/archive_build/logs/stdio . And the test script will be executed outside of ```src/```, basically ```target``` will be ```Release/Debug``` and ```build-dir``` will be ```src/out```, you just need to join these two as the target dir to chdir to.