user/tests/accept/features/support/build.rb
# Last application path is cached in order to not flash the same application for every scenario
Last application path is cached in order to not flash the same application for every scenario
Last application path is cached in order to not flash the same application for every scenario
def build_app(app_path, platform=nil)
        target_path = Util.cache_dir(File.join('build_target', app_path))
        if platform != nil
          a = Util.exec("build_app -t #{target_path} -p #{platform} #{app_path}")
        else
          a = Util.exec("build_app -t #{target_path} #{app_path}")
        end
        @last_bin_path = File.join(target_path, File.basename(app_path) + '.bin')
        puts @last_bin_path
        puts target_path
        return @last_bin_path
      end
def build_app ( app_path , platform = nil ) target_path = Util . cache_dir ( File . join ( 'build_target' , app_path ) ) if platform != nil a = Util . exec ( "build_app -t #{target_path} -p #{platform} #{app_path}" ) else a = Util . exec ( "build_app -t #{target_path} #{app_path}" ) end @last_bin_path = File . join ( target_path , File . basename ( app_path ) + '.bin' ) puts @last_bin_path puts target_path return @last_bin_path end
Last application path is cached in order to not flash the same application for every scenario
Last application path is cached in order to not flash the same application for every scenario
app_path
<not_specific>
platform
<not_specific>