Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron Train AaronMT

View GitHub Profile
View gist:ad4a60aaa0c048a36df980c038b4cedc
{
"test_name": "deleteAllHistoryTest",
"test_result": "flaky"
}
{
"test_name": "closeTabCrashedReporterTest",
"test_result": "flaky"
}
{
"test_name": "openRecentlyClosedTabsInNewPrivateTabTest",
@AaronMT
AaronMT / gist:62c77895e2e86c0975afe0bc15c1c94d
Created Feb 25, 2021
Setting a specific Python3 default on Ubuntu
View gist:62c77895e2e86c0975afe0bc15c1c94d
List available python options
```
ls -larth `which python`*
lrwxrwxrwx 1 root root 10 Mar 23 2016 /usr/bin/python3m -> python3.5m
lrwxrwxrwx 1 root root 9 Mar 23 2016 /usr/bin/python3 -> python3.5
lrwxrwxrwx 1 root root 9 Nov 24 2017 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root 9 Nov 24 2017 /usr/bin/python -> python2.7
-rwxr-xr-x 2 root root 4.3M Nov 28 2017 /usr/bin/python3.5m
-rwxr-xr-x 2 root root 4.3M Nov 28 2017 /usr/bin/python3.5
View gist:09205ae113398a0ba876e50efb09e7f0
% carthage bootstrap --platform iOS --no-use-binaries --cache-builds
Please update to the latest Carthage version: 0.36.0. You currently are on 0.34.0
*** Checking out lottie-ios at "477959517babbeb46e69a6e94ae1c666af559e96"
*** Checking out Nimble at "v8.0.4"
*** Checking out RxSwift at "9b31a15520306b073cb9d46456f64826c1d6dcab"
*** Checking out Quick at "v2.2.0"
*** Cloning RxSwift
*** Cloning lottie-ios
*** Cloning Quick
*** Cloning Nimble
View JNI Error
06-13 14:27:43.208: E/lla.fenix.debu(10168): JNI ERROR (app bug): accessed stale Local 0xe5e5e5e5 (index 241065566 in a table of size 6)
06-13 14:27:43.233: E/memtrack(2076): Couldn't load memtrack module
06-13 14:27:43.233: W/android.os.Debug(2076): failed to get memory consumption info: -1
06-13 14:27:43.263: D/BrowserIcons(10168): Loaded icon (source = DOWNLOAD): https://www.youtube.com/
06-13 14:27:43.475: D/BrowserIcons(10168): Loaded icon (source = DOWNLOAD): https://www.wikipedia.org/
06-13 14:27:43.543: I/Remoter(1917): Saved screenshot to '/data/screenshots/__pmv__-0176.jpg'
06-13 14:27:43.561: E/memtrack(2076): Couldn't load memtrack module
06-13 14:27:43.561: W/android.os.Debug(2076): failed to get memory consumption info: -1
06-13 14:27:43.669: E/memtrack(2076): Couldn't load memtrack module
06-13 14:27:43.669: W/android.os.Debug(2076): failed to get memory consumption info: -1
View gist:7831e2230ae3b3bd44e0233fb9b835f9
04-21 11:32:02.180: W/BroadcastQueue(2069): --------- beginning of crash
04-21 11:32:02.365: E/AndroidRuntime(2861): FATAL EXCEPTION: launcher-loader
04-21 11:32:02.365: E/AndroidRuntime(2861): Process: com.android.launcher3, PID: 2861
04-21 11:32:02.365: E/AndroidRuntime(2861): java.lang.IllegalStateException: unable to getPixel(), pixel access is not supported on Config#HARDWARE bitmaps
04-21 11:32:02.365: E/AndroidRuntime(2861): at android.graphics.Bitmap.checkHardware(Bitmap.java:401)
04-21 11:32:02.365: E/AndroidRuntime(2861): at android.graphics.Bitmap.getPixel(Bitmap.java:1726)
04-21 11:32:02.365: E/AndroidRuntime(2861): at com.android.launcher3.graphics.ColorExtractor.findDominantColorByHue(ColorExtractor.java:58)
04-21 11:32:02.365: E/AndroidRuntime(2861): at com.android.launcher3.graphics.ColorExtractor.findDominantColorByHue(ColorExtractor.java:28)
04-21 11:32:02.365: E/AndroidRuntime(2861): at com.android.launcher3.graphics.BitmapInfo.fromBitmap(BitmapInfo.java:40)
04-21 11:32:02.365: E/Andro
View gist:d6a91d7adc336b6d5d9505fd42cdcada
[task 2020-04-22T17:59:33.320Z] 5m 50s matrix-1bbsdnipvmr70 Pixel2-28 FINISHED
[task 2020-04-22T17:59:46.865Z] 6m 4s matrix-1bbsdnipvmr70 FINISHED
[task 2020-04-22T17:59:46.865Z]
[task 2020-04-22T17:59:46.867Z] FetchArtifacts
[task 2020-04-22T17:59:55.485Z] .................................................
[task 2020-04-22T17:59:55.485Z] Updating matrix file
[task 2020-04-22T17:59:55.485Z]
[task 2020-04-22T17:59:56.096Z] java.lang.IllegalStateException: response.testCases must not be null
[task 2020-04-22T17:59:56.096Z] at ftl.reports.api.CreateTestExecutionDataKt.createTestExecutionData(CreateTestExecutionData.kt:34)
[task 2020-04-22T17:59:56.096Z] at ftl.reports.api.CreateTestExecutionDataKt$createTestExecutionData$1.invokeSuspend(CreateTestExecutionData.kt)
View gist:26d8ff3eb79886d7a0f3fb2b8aab2829
┌───────────────────┬──────────┬─────────────────────────────────────┬─────────┬─────────────┬──────────────────────┬──────┐
│ MODEL_ID │ MAKE │ MODEL_NAME │ FORM │ RESOLUTION │ OS_VERSION_IDS │ TAGS │
├───────────────────┼──────────┼─────────────────────────────────────┼─────────┼─────────────┼──────────────────────┼──────┤
│ Nexus10 │ Samsung │ Nexus 10 │ VIRTUAL │ 2560 x 1600 │ 19,21,22 │ │
│ Nexus4 │ LG │ Nexus 4 │ VIRTUAL │ 1280 x 768 │ 19,21,22 │ │
│ Nexus5 │ LG │ Nexus 5 │ VIRTUAL │ 1920 x 1080 │ 19,21,22,23 │ │
│ Nexus5X │ LG │ Nexus 5X │ VIRTUAL │ 1920 x 1080 │ 23,24,25,26 │ │
│ Nexus6 │ Motorola │ Nexus 6 │ VIRTUAL │ 2560 x 1440 │ 21,22,23,24,25 │ │
│ Nexus6P │ Go
View legacy-result
[task 2020-03-30T18:59:37.548Z] 5m 56s matrix-342os2kl0hzcd Nexus6P-27 Started crash monitoring.
[task 2020-03-30T18:59:37.548Z] 5m 56s matrix-342os2kl0hzcd Nexus6P-27 Started performance monitoring.
[task 2020-03-30T18:59:37.548Z] 5m 56s matrix-342os2kl0hzcd Nexus6P-27 Stopped performance monitoring.
[task 2020-03-30T18:59:42.816Z] 6m 1s matrix-342os2kl0hzcd Nexus6P-27 Stopped crash monitoring.
[task 2020-03-30T18:59:42.816Z] 6m 1s matrix-342os2kl0hzcd Nexus6P-27 Retrieving Post-test Package Stats information from the device.
[task 2020-03-30T18:59:42.816Z] 6m 1s matrix-342os2kl0hzcd Nexus6P-27 Logging out of Google account on device.
[task 2020-03-30T18:59:42.816Z] 6m 1s matrix-342os2kl0hzcd Nexus6P-27 Stopped logcat recording.
[task 2020-03-30T18:59:42.816Z] 6m 1s matrix-342os2kl0hzcd Nexus6P-27 Done. Test time = 147 (secs)
[task 2020-03-30T18:59:42.816Z] 6m 1s matrix-342os2kl0hzcd Nexus6P-27 Starting results processing. Attempt: 1
[task 2020-03-30T18:59:48.078Z] 6m 7s matrix-342
View Matchers.kt
fun nthChildOf(
parentMatcher: Matcher<View>,
childPosition: Int
): Matcher<View> {
return object : TypeSafeMatcher<View>() {
override fun describeTo(description: Description) {
description.appendText("Position is $childPosition")
}
public override fun matchesSafely(view: View): Boolean {
View gist:de3ae57f27693e73a5a1fa95bdd1834d
fun verifyHelpUrl() {
val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
val redirectUrl = "https://support.mozilla.org/"
assertNotNull(mDevice.wait(Until.findObject(By.res("R.id.mozac_browser_toolbar_url_view")), TestAssetHelper.waitingTime))
onView(withId(R.id.mozac_browser_toolbar_url_view))
.check(matches(withText(containsString(redirectUrl))))
}
fun verifyWhatsNewURL() {
val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())