Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Hunt davehunt

View GitHub Profile
View marketplace-tests.rst

test_details_page.py

test_that_application_page_contains_proper_objects

  • open home page
  • ✓ page title
  • search for free app
  • click first app in results
  • ✓ page title
View b2gperf_regression_hunter.py
import argparse
import logging
import re
import time
import sys
from BeautifulSoup import BeautifulSoup
import jenkins
import requests
View FLEA3.json
{
"properties": {
"AUTO_EXPOSURE": {
"absValue": 1.32196,
"autoManualMode": false,
"onOff": true,
"valueA": 480,
"valueB": 0
},
"GAIN": {
View gist:11400946
+ ./bin/getdimensions.py --output-file=eideticker.properties --output-screenshot=dimensions.png --wifi-settings=/home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.tarako.mozilla-b2g28_v1_3t.tests/workspace/wifi.json
DeviceManager INFO | Stopping B2G
DeviceManager INFO | Starting B2G
DeviceManager INFO | Waiting for Marionette...
DeviceManager INFO | Marionette ready, starting session
DeviceManager INFO | Marionette ready!
Capturing to file ./bin/../captures/capture-test-1398777901.35.zip
Serving '/home/mozilla/eideticker-ci/jenkins-master/jobs/b2g.tarako.mozilla-b2g28_v1_3t.tests/workspace/src/tests' at 10.246.24.40:40702
Using adb interface (type: b2g, host: None, port: None, debuglevel: 20)
Apr 29 14:25:44 Capture Controller | Starting capture...
@davehunt
davehunt / flash.sh
Last active Aug 29, 2015
Full flash B2G for CI
View flash.sh
#!/bin/bash -e
# This script is maintained at:
# https://gist.github.com/davehunt/f390693d59d285ea22da
# Preconditions:
# 1. device.zip and sources.xml must be present for this script to work
# 2. the device also has to be oem unlocked so we have fastboot mode
function show_free_space() {
View launch_marketplace.py
from marionette import Marionette
m = Marionette()
m.start_session()
from gaiatest import GaiaApps
a = GaiaApps(m)
a.launch('Marketplace')
m.delete_session()
View gist:6bb2cefc42305dad4e8b
$ gaiatest --app=b2g --address=localhost:2828 --testvars=home.json --symbols=b2g.en-US.android-arm.crashreporter-symbols.zip gaiatest/tests/unit/test_crash.py
starting httpd
running webserver on http://192.168.1.9:55685/
SUITE-START | Running 1 tests
SUITE-START | Running 0 tests
TEST-START | test_crash.py TestCrash.test_crash
removing /storage/sdcard0/.android_secure
removing /storage/sdcard0/LOST.DIR
PROCESS-CRASH | automation | application crashed [@ libc.so + 0x1c63c]
Crash dump filename: /var/folders/3y/wrsgzz095jb2dg7vk9wnd42r0000gn/T/tmpzX4Qpk/4eff1f0e-8e55-342a-0df8cb86-10178990.dmp
View reset_memory.sh
#!/bin/bash -e
echo -e "\n\033[1mResetting memory allocation\033[0m"
adb reboot bootloader
fastboot oem mem $DEVICE_MEMORY
fastboot reboot
sleep 60
View gist:5d445de55e7e58ebb386
+ make reference-workload-light
test_media/reference-workload/makeReferenceWorkload.sh light
Waiting for device to be connected...
Device connected
Populate Databases - light Workload
IndexedDB base dir: /data/local/storage/persistent
idb directory present
Starting gallery
Can't find remote dir
make: *** [reference-workload-light] Error 1
View job.js
[
{
"project": "b2g-inbound",
"job": {
"end_timestamp": "",
"submit_timestamp": 1407162708,
"start_timestamp": "",
"build_url": "",
"name": "Gaia Python Integration Test",
"option_collection": {},