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 flash_app(app_path, platform=nil)
        if app_path != @last_app_path
          target_path = Util.cache_dir(File.join('build_target', app_path))
          if platform != nil
            Util.exec("flash_app -t #{target_path} -p #{platform} #{app_path}")
          else
            Util.exec("flash_app -t #{target_path} #{app_path}")
          end
          @last_app_path = app_path
          sleep(2)
        end
      end
def flash_app ( app_path , platform = nil ) if app_path != @last_app_path target_path = Util . cache_dir ( File . join ( 'build_target' , app_path ) ) if platform != nil Util . exec ( "flash_app -t #{target_path} -p #{platform} #{app_path}" ) else Util . exec ( "flash_app -t #{target_path} #{app_path}" ) end @last_app_path = app_path sleep ( 2 ) end 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
# Give the device some time to boot into the application # TODO: Wait for specific device state instead of fixed delay
app_path
<not_specific>
platform
<not_specific>