This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, subprocess | |
| from getpass import getpass | |
| def is_root(): | |
| return os.geteuid() == 0 | |
| def test_sudo(pwd=""): | |
| args = "sudo -S echo OK".split() | |
| kwargs = dict(stdout=subprocess.PIPE, | |
| encoding="ascii") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From de641d9474417203e707c0932185c1dccfd39e96 Mon Sep 17 00:00:00 2001 | |
| From: Yurdik Cervantes <ycervantes@elegosoft.com> | |
| Date: Wed, 4 Dec 2019 12:16:48 +0100 | |
| Subject: [FIX] ignore duplicated rows for translation imports | |
| In the cases where conflicting translation rows are imported (for | |
| example `.po` vs `.pot` files) the import queries during the database | |
| update fail with one stop error. | |
| With this change, just one of the duplicated rows to import is left, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import optparse | |
| import erppeek | |
| import networkx as nx | |
| options = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import optparse | |
| import erppeek | |
| from py2neo import Node, Relationship, Graph, watch | |
| from py2neo.packages.httpstream import http |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package automationFramework; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.logging.Level; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.Keys; | |
| import org.openqa.selenium.WebDriver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package automationFramework; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.logging.Level; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.Keys; | |
| import org.openqa.selenium.WebDriver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IOpening new Tab | |
| webdriver::server DEBUG -> POST /session/95eafc26-5064-4038-9abd-77cfa38d0c97/element/d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163/value {"id":"d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163","text":"abcdef","value":["a","b","c","d","e","f"]} | |
| geckodriver::marionette TRACE -> 121:[0,5,"sendKeysToElement",{"id":"d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163","text":"abcdef","value":["a","b","c","d","e","f"]}] | |
| Marionette TRACE 0 -> [0,5,"sendKeysToElement",{"id":"d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163","text":"abcdef","value":["a","b","c","d","e","f"]}] | |
| Marionette TRACE 0 <- [1,5,null,{}] | |
| geckodriver::marionette TRACE <- [1,5,null,{}] | |
| webdriver::server DEBUG <- 200 OK {"value": {}} | |
| webdriver::server DEBUG -> POST /session/95eafc26-5064-4038-9abd-77cfa38d0c97/element/d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163/value {"id":"d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163","text":"t","value":["","t",""]} | |
| geckodriver::marionette TRACE -> 114:[0,6,"sendKeysToElement",{"id":"d36aa8a9-5ab2-4bc3-a951-fec6e7bd6163","text":"t","value":["","t"," |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Opening new Tab | |
| webdriver::server DEBUG -> POST /session/cf7cca51-aeb8-4d18-b52a-ce6e7ef7f0d4/element/b1c10055-c301-4892-930c-2e1859fb13d9/value {"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"abcdef","value":["a","b","c","d","e","f"]} | |
| geckodriver::marionette TRACE -> 121:[0,5,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"abcdef","value":["a","b","c","d","e","f"]}] | |
| Marionette TRACE 0 -> [0,5,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"abcdef","value":["a","b","c","d","e","f"]}] | |
| geckodriver::marionette TRACE <- [1,5,null,{}] | |
| Marionette TRACE 0 <- [1,5,null,{}] | |
| webdriver::server DEBUG <- 200 OK {"value": {}} | |
| webdriver::server DEBUG -> POST /session/cf7cca51-aeb8-4d18-b52a-ce6e7ef7f0d4/element/b1c10055-c301-4892-930c-2e1859fb13d9/value {"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text":"z12345","value":["","z","","1","2","3","4","5"]} | |
| geckodriver::marionette TRACE -> 139:[0,6,"sendKeysToElement",{"id":"b1c10055-c301-4892-930c-2e1859fb13d9","text": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package automationFramework; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.InputStreamReader; | |
| import java.util.logging.Level; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.Keys; | |
| import org.openqa.selenium.WebDriver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This Source Code Form is subject to the terms of the Mozilla Public | |
| # License, v. 2.0. If a copy of the MPL was not distributed with this | |
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
| # locate the test script in mozilla-central repository | |
| # path: testing/marionette/harness/marionette_harness/tests/unit/test_key_newtabs.py | |
| # | |
| # and tun it via: | |
| # | |
| # ./mach marionette-test testing/marionette/harness/marionette_harness/tests/unit/test_key_newtabs.py -vv --gecko-log - |