Home
last modified time | relevance | path

Searched +full:self +full:- +full:update (Results 1 – 25 of 401) sorted by relevance

12345678910>>...17

/openbmc/openbmc/meta-security/lib/oeqa/runtime/cases/
H A Dsuricata.py31 def test_suricata_help(self): argument
32 status, output = self.target.run('suricata --help')
35 self.assertEqual(status, 1, msg = msg)
38 def test_ping_openinfosecfoundation_org(self): argument
40 self.tc.target.run('rm -f %s' % dst)
41 (status, output) = self.tc.target.copyTo(self.tmp_path, dst)
43 self.assertEqual(status, 0, msg=msg)
45 status, output = self.target.run('ping -c 1 openinfosecfoundation.org')
47 self.assertEqual(status, 0, msg = msg)
49 @OEHasPackage(['python3-suricata-update'])
[all …]
/openbmc/openbmc/poky/bitbake/lib/progressbar/
H A Dwidgets.py1 # -*- coding: utf-8 -*-
3 # progressbar - Text progress bar library for Python.
6 # SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear
20 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
39 if hasattr(updatable, 'update'): return updatable.update(pbar)
46 The ProgressBar will call the widget's update value when the widget should
58 def update(self, pbar): member in Widget
61 pbar - a reference to the calling ProgressBar
74 def update(self, pbar, width): member in WidgetHFill
77 pbar - a reference to the calling ProgressBar
[all …]
H A Dprogressbar.py1 # -*- coding: utf-8 -*-
3 # progressbar - Text progress bar library for Python.
8 # SPDX-License-Identifier: LGPL-2.1-or-later OR BSD-3-Clause-Clear
22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
55 ... pbar.update(i+1)
76 When implementing a widget's update method you are passed a reference to
82 - currval: current progress (0 <= currval <= maxval)
83 - maxval: maximum (and final) value
84 - finished: True if the bar has finished (reached 100%)
85 - start_time: the time when start() method of ProgressBar was called
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/com/google/gbmc/
H A DHoth.interface.yaml5 - name: SendHostCommand
12 - name: Command
17 - name: Response
22 - self.Error.CommandFailure
23 - self.Error.ResponseFailure
24 - self.Error.InterfaceError
25 - xyz.openbmc_project.Common.Error.Timeout
27 - name: SendTrustedHostCommand
34 - name: Command
39 - name: Response
[all …]
/openbmc/qemu/tests/qapi-schema/
H A Dtest-qapi.py11 # See the COPYING file in the top-level directory.
27 def visit_module(self, name): argument
30 def visit_include(self, name, info): argument
33 def visit_enum_type(self, name, info, ifcond, features, members, prefix): argument
39 self._print_if(m.ifcond, indent=8)
40 self._print_features(m.features, indent=8)
41 self._print_if(ifcond)
42 self._print_features(features)
44 def visit_array_type(self, name, info, ifcond, element_type): argument
46 return # suppress built-in arrays
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dprogress.py7 # SPDX-License-Identifier: GPL-2.0-only
19 ANSI_ESCAPE_REGEX = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
43 def __init__(self, d, outfile=None): argument
44 self._progress = 0
45 self._data = d
46 self._lastevent = 0
48 self._outfile = outfile
50 self._outfile = StdoutNoopContextManager()
52 def __enter__(self): argument
53 self._outfile.__enter__()
[all …]
/openbmc/skeleton/pyflashbmc/
H A Dbmc_update.py53 shutil.copyfile(files[0], os.path.join(UPDATE_PATH, "image-u-boot-env"))
57 def __init__(self, bus, name): argument
58 super(BmcFlashControl, self).__init__(conn=bus, object_path=name)
60 self.Set(DBUS_NAME, "status", "Idle")
61 self.Set(DBUS_NAME, "filename", "")
62 self.Set(DBUS_NAME, "preserve_network_settings", True)
63 self.Set(DBUS_NAME, "restore_application_defaults", False)
64 self.Set(DBUS_NAME, "update_kernel_and_apps", False)
65 self.Set(DBUS_NAME, "clear_persistent_files", False)
66 self.Set(DBUS_NAME, "auto_apply", False)
[all …]
/openbmc/openbmc/poky/meta/lib/oe/package_manager/rpm/
H A Drootfs.py4 # SPDX-License-Identifier: GPL-2.0-only
14 def __init__(self, d, manifest_dir, progress_reporter=None, logcatcher=None): argument
15 super(PkgRootfs, self).__init__(d, progress_reporter, logcatcher)
16 self.log_check_regex = r'(unpacking of archive failed|Cannot find package'\
20 self.manifest = PkgManifest(d, manifest_dir)
22 self.pm = RpmPM(d,
24 self.d.getVar('TARGET_VENDOR')
27 self.inc_rpm_image_gen = self.d.getVar('INC_RPM_IMAGE_GEN')
28 if self.inc_rpm_image_gen != "1":
29 bb.utils.remove(self.image_rootfs, True)
[all …]
H A Dsdk.py4 # SPDX-License-Identifier: GPL-2.0-only
15 def __init__(self, d, manifest_dir=None, rpm_workdir="oe-sdk-repo"): argument
16 super(PkgSdk, self).__init__(d, manifest_dir)
18 self.target_manifest = PkgManifest(d, self.manifest_dir,
20 self.host_manifest = PkgManifest(d, self.manifest_dir,
23 rpm_repo_workdir = "oe-sdk-repo"
25 rpm_repo_workdir = "oe-sdk-ext-repo"
27 self.target_pm = RpmPM(d,
28 self.sdk_target_sysroot,
29 self.d.getVar('TARGET_VENDOR'),
[all …]
/openbmc/u-boot/tools/binman/etype/
H A D_testing.py1 # SPDX-License-Identifier: GPL-2.0+
5 # Entry-type module for testing purposes. Not used in real images.
22 test-str-fdt: Test string, normally in the node
23 test-int-fdt: Test integer, normally in the node
24 test-str-arg: Test string, normally in the entry arguments
25 test-int-arg: Test integer, normally in the entry arguments
31 return-invalid-entry: Return an invalid entry from GetOffsets()
32 return-unknown-contents: Refuse to provide any contents (to cause a
34 bad-update-contents: Implement ProcessContents() incorrectly so as to
36 never-complete-process-fdt: Refund to process the FDT (to cause a
[all …]
/openbmc/qemu/rust/hw/char/pl011/src/
H A Ddevice.rs3 // SPDX-License-Identifier: GPL-2.0-or-later
30 use crate::registers::{self, Interrupt, RegisterOffset};
51 fn index(&self, idx: hwaddr) -> &Self::Output { in index() argument
52 &self.0[idx as usize] in index()
56 // FIFOs use 32-bit indices instead of usize, for compatibility with
64 const fn len(&self) -> u32 { in len()
65 self.0.len() as u32 in len()
70 fn index_mut(&mut self, idx: u32) -> &mut Self::Output { in index_mut() argument
71 &mut self.0[idx as usize] in index_mut()
78 fn index(&self, idx: u32) -> &Self::Output { in index() argument
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/orm/management/commands/
H A Dlsupdates.py4 # Copyright (C) 2016-2017 Intel Corporation
6 # SPDX-License-Identifier: GPL-2.0-only
41 def __init__(self, *args, **kwargs): argument
42 super(Spinner, self).__init__(*args, **kwargs)
43 self.daemon = True
44 self.signal = True
46 def run(self): argument
47 os.system('setterm -cursor off')
48 while self.signal:
49 for char in ["/", "-", "\\", "|"]:
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/bldcontrol/management/commands/
H A Dchecksettings.py2 # SPDX-License-Identifier: GPL-2.0-only
27 def __init__(self, *args, **kwargs): argument
28 super(Command, self).__init__(*args, **kwargs)
29 self.guesspath = DN(DN(DN(DN(DN(DN(DN(__file__)))))))
31 def _verify_build_environment(self): argument
50 … print("\n -- Validation: The layers checkout directory must be set to an absolute path.")
66 … print("\n -- Validation: The build directory must to be set to an absolute path.")
88 print("Loading OE-Core configuration")
89 call_command("loaddata", "oe-core")
98 " your openembedded-core "
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/browser/
H A Dtest_most_recent_builds_states.py5 # SPDX-License-Identifier: GPL-2.0-only
7 # Copyright (C) 2013-2016 Intel Corporation
19 """ Test states update correctly in most recent builds area """
21 def _create_build_request(self): argument
32 def _create_recipe(self): argument
38 def _check_build_states(self, build_request): argument
40 url = reverse('all-builds')
41 self.get(url)
44 base_selector = '[data-latest-build-result="%s"] ' % build.id
47 selector = base_selector + '[data-build-state="Queued"]'
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/
H A Dbzr.py13 # SPDX-License-Identifier: GPL-2.0-only
24 def supports(self, ud, d): argument
27 def urldata_init(self, ud, d): argument
33 relpath = self._strip_leading_slashes(ud.path)
39 ud.revision = self.latest_revision(ud, d)
43 def _buildbzrcommand(self, ud, d, command): argument
46 command is "fetch", "update", "revno"
61 options.append("-r %s" % ud.revision)
65 elif command == "update":
66 bzrcmd = "%s pull %s --overwrite" % (basecmd, " ".join(options))
[all …]
H A Dhg.py10 # SPDX-License-Identifier: GPL-2.0-only
26 def supports(self, ud, d): argument
32 def supports_checksum(self, urldata): argument
39 def urldata_init(self, ud, d): argument
73 ud.revision = self.latest_revision(ud, d)
77 def need_update(self, ud, d): argument
85 def try_premirror(self, ud, d): argument
94 def _buildhgcommand(self, ud, d, command): argument
97 command is "fetch", "update", "info"
116 return "%s identify -i %s://%s/%s" % (ud.basecmd, proto, hgroot, ud.module)
[all …]
H A Dosc.py4 # SPDX-License-Identifier: GPL-2.0-only
27 def supports(self, ud, d): argument
33 def urldata_init(self, ud, d): argument
41 relpath = self._strip_leading_slashes(ud.path)
58 def _buildosccommand(self, ud, d, command): argument
61 command is "fetch", "update", "info"
70 config = "-c %s" % self.generate_config(ud, d)
73 options.append("-r %s" % ud.revision)
75 coroot = self._strip_leading_slashes(ud.path)
78 …osccmd = "%s %s -A %s://%s co %s/%s %s" % (basecmd, config, proto, ud.host, coroot, ud.module, " "…
[all …]
H A Dsvn.py9 # SPDX-License-Identifier: GPL-2.0-only
24 def supports(self, ud, d): argument
30 def urldata_init(self, ud, d): argument
37 … ud.basecmd = d.getVar("FETCHCMD_svn") or "/usr/bin/env svn --non-interactive --trust-server-cert"
48 relpath = self._strip_leading_slashes(ud.path)
60 # Whether to use the @REV peg-revision syntax in the svn command or not
67 def _buildsvncommand(self, ud, d, command): argument
70 command is "fetch", "update", "info"
83 options.append("--no-auth-cache")
86 options.append("--username %s" % ud.user)
[all …]
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml7 - name: Update
9 The Update method is defined for the on demand metric report update.
10 It triggers update of the Readings property. If ReportingType is not
12 - name: SetReadingProperties
18 - name: ReportingType
19 type: enum[self.ReportingType]
23 - name: Interval
29 - name: Persistency
34 - name: ReadingParameters
35 …type: array[struct[array[struct[object_path,string]],enum[self.OperationType],string,enum[self.Col…
[all …]
/openbmc/skeleton/pyinventorymgr/
H A Dinventory_items.py25 def __init__(self, bus, name): argument
26 super(Inventory, self).__init__(conn=bus, object_path=name)
30 def __init__(self, bus, name, data): argument
31 super(InventoryItem, self).__init__(conn=bus, object_path=name)
33 self.name = name
42 self.SetMultiple(INTF_NAME, data)
45 PropertyCacher.load(name, INTF_NAME, self.properties)
48 def update(self, data): member in InventoryItem
49 self.SetMultiple(INTF_NAME, data)
50 PropertyCacher.save(self.name, INTF_NAME, self.properties)
[all …]
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/eventreplay/
H A D__init__.py7 # SPDX-License-Identifier: GPL-2.0-only
10 # Tests were part of openembedded-core oe selftest Authored by: Lucian Musat
15 using toaster-eventreplay script
30 def setUp(self): argument
33 - set self.script to toaster-eventreplay path
34 - set self.eventplay_dir to the value of EVENTPLAY_DIR env variable
37 self.script = bitbake_dir / 'bin' / 'toaster-eventreplay'
38 self.assertTrue(self.script.exists(), "%s doesn't exist")
39 self.eventplay_dir = os.getenv("EVENTREPLAY_DIR")
40 self.assertTrue(self.eventplay_dir,
[all …]
/openbmc/openbmc/poky/meta/lib/bblayers/setupwriters/
H A Doe-setup-layers.py4 # SPDX-License-Identifier: GPL-2.0-only
12 logger = logging.getLogger('bitbake-layers')
19 def __str__(self): argument
20 return "oe-setup-layers"
22 def _write_python(self, input, output): argument
30 def _write_json(self, repos, output): argument
34 def _read_repo_config(self, json_path): argument
46 def _modify_repo_config(self, json_config, args): argument
56 err = "Repository {} does not exist in setup-layers config".format(repo)
60 layer_remote = json_config['sources'][repo]['git-remote']
[all …]
/openbmc/openbmc/poky/meta/lib/oe/package_manager/deb/
H A Dsdk.py4 # SPDX-License-Identifier: GPL-2.0-only
16 def __init__(self, d, manifest_dir=None): argument
17 super(PkgSdk, self).__init__(d, manifest_dir)
19 self.target_conf_dir = os.path.join(self.d.getVar("APTCONF_TARGET"), "apt")
20 self.host_conf_dir = os.path.join(self.d.getVar("APTCONF_TARGET"), "apt-sdk")
23 self.target_manifest = PkgManifest(d, self.manifest_dir,
25 self.host_manifest = PkgManifest(d, self.manifest_dir,
28 deb_repo_workdir = "oe-sdk-repo"
30 deb_repo_workdir = "oe-sdk-ext-repo"
32 self.target_pm = DpkgPM(d, self.sdk_target_sysroot,
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dapt.py4 # SPDX-License-Identifier: MIT
15 def pkg(self, command, expected = 0): argument
16 command = 'apt-get %s' % command
17 status, output = self.target.run(command, 1500)
19 self.assertEqual(status, expected, message)
36 def setup_source_config_for_package_install(self): argument
37 apt_get_source_server = 'http://%s:%s/' % (self.tc.target.server_ip, self.repo_server.port)
39self.target.run('cd %s; echo deb [ allow-insecure=yes ] %s/all ./ > sources.list' % (apt_get_sourc…
41 def setup_source_config_for_package_install_signed(self): argument
42 apt_get_source_server = 'http://%s:%s' % (self.tc.target.server_ip, self.repo_server.port)
[all …]
/openbmc/u-boot/tools/patman/
H A Dsettings.py1 # SPDX-License-Identifier: GPL-2.0+
18 """Default settings per-project.
24 "u-boot": {},
34 - Load project-specific default settings.
35 - Merge general default settings/aliases with project-specific ones.
81 def __init__(self, project_name): argument
90 self._project_name = project_name
91 ConfigParser.SafeConfigParser.__init__(self)
93 # Update the project settings in the config based on
96 if not self.has_section(project_settings):
[all …]

12345678910>>...17