Searched refs:format (Results 1 - 25 of 230) sorted by relevance

12345678910

/pkg/src/tests/cli/
H A Dt_pkg_R_option.py64 self.pkg("-R {0} list".format(badpath), exit=1)
65 self.pkg("-R {0} list".format(imgpath), exit=1)
67 self.pkg("-R {0} install foo".format(badpath), exit=1)
68 self.pkg("-R {0} install foo".format(imgpath))
70 self.pkg("-R {0} list".format(badpath), exit=1)
71 self.pkg("-R {0} list".format(imgpath))
74 self.pkg("-R {0} refresh".format(imgpath))
76 self.pkg("-R {0} update".format(badpath), exit=1)
77 self.pkg("-R {0} update --be-name NEWBENAME".format(imgpath), exit=1)
78 self.pkg("-R {0} update".format(imgpat
[all...]
H A Dt_pkgfmt.py1304 """Verify that pkgfmt -c format checking works as expected."""
1314 # Verify pkgfmt exits 1 when checking format for manifest that
1316 self.pkgfmt("-c {0}".format(man), exit=1)
1319 self.pkgfmt("-c < {0}".format(man), exit=1)
1321 # Verify pkgfmt exits 1 when checking format for multiple
1323 self.pkgfmt("-c {0} {1}".format(man, man2), exit=1)
1328 self.pkgfmt("-f {0} {1}".format(pfmt, man))
1332 msg="{0} format".format(pfmt))
1341 msg="{0} format"
[all...]
H A Dt_pkgmerge.py373 "-d {0}".format(self.rurl2),
378 "-s arch=i386,{0}".format(self.rurl2),
383 "-s {0}".format(self.rurl1),
384 "-d {0}".format(self.rurl2),
390 "-d {0}".format(self.rurl2),
396 "-s arch=sparc,{0}".format(self.dcs[1].get_repodir()),
397 "-s arch=i386,debug=true,{0}".format(self.dcs[2].get_repodir()),
398 "-d {0}".format(self.rurl7)
404 "-s arch=sparc,debug=false,{0}".format(self.dcs[1].get_repodir()),
405 "-s arch=i386,debug=false,{0}".format(sel
[all...]
H A Dt_pkgrepo.py247 self.pkgrepo("-s {0}".format(self.test_root), exit=2)
251 self.pkgrepo("info -s {0}".format(baduri), exit=2)
261 self.pkgrepo("create {0}".format(baduri), exit=2)
272 self.pkgrepo("create -s {0}".format(repo_path))
278 self.pkgrepo("create {0}".format(repo_uri))
285 self.pkgrepo("create {0}".format(repo_path))
290 self.pkgrepo("create {0}".format(repo_path), exit=1)
305 self.pkgrepo("create -s {0} --version=3".format(repo_path))
308 self.pkgrepo("get -s {0} repository/unknown".format(repo_uri), exit=1)
313 "repository/unknown".format(repo_ur
[all...]
H A Dt_pkglint.py246 "short name didn't appear in {0} output".format(flag))
249 "Header not printed in {0} output".format(flag))
259 "-L output: {0}".format(output))
276 self.pkglint("{0} {1}".format(mpath, mpath1), exit=1)
285 self.make_misc_files({"rcfile": self.module_exclusion_rc.format(
287 self.make_misc_files({"rcfile1": self.method_exclusion_rc.format(
291 self.pkglint("{0}".format(mpath1), exit=1)
294 self.pkglint("-f {0}/rcfile {1}".format(self.test_root, mpath1),
296 self.pkglint("-f {0}/rcfile1 {1}".format(self.test_root, mpath1),
299 ret, output, err = self.pkglint("-f {0}/rcfile -vL".format(
[all...]
H A Dt_pkg_publisher.py78 self.pkg("set-publisher -O http://{0}1 test1".format(self.bogus_url),
82 self.pkg("set-publisher -d --no-refresh -O http://{0}1 test1".format(
86 self.pkg("set-publisher -P -O http://{0}2 test2".format(
88 self.pkg("set-publisher -P --no-refresh -O http://{0}2 test2".format(
99 self.pkg("set-publisher --no-refresh -O http://{0}2 test3".format(
111 self.pkg("set-publisher --no-refresh -O http://{0}2 test3".format(
116 self.pkg("set-publisher --no-refresh -O http://{0}2 test3".format(
118 self.pkg("set-publisher --no-refresh -O http://{0}2 test4".format(
150 self.pkg("set-publisher -O http://{0}1 --no-refresh --reset-uuid test1".format(
153 self.pkg("set-publisher -O http://{0}1 --no-refresh test2".format(
[all...]
H A Dt_depot_config.py114 # of the format <fmri>%<state>
157 # of the format <fmri>%<state>%<inst_root>%<readonly>%<standalone>%<writable_root>
319 [value.format(**rdirs) for value in item])
323 "usr/bin/svcs": self._svcs_template.format(_svcs_conf),
324 "usr/bin/svcprop": self._svcprop_template.format(_svcprop_conf)
337 "{0}/depot/depot-wait-refresh".format(hc.url)).close()
378 "No usage string printed: {0}".format(output))
381 "No usage string printed: {0}".format(output))
393 "-d {0} -F".format(invalid_root), out=True, stderr=True,
397 "error message did not contain {0}: {1}".format(
[all...]
H A Dt_pkg_temp_sources.py128 name = "{0}_cert.pem".format(c)
147 "-i {i3} -i {i4} -i {i5} -i {i6} {pkg}".format(
227 self.pkgrecv(self.all_rurl, "-d {0} foo".format(self.foo_rurl))
238 "{0}.p5p".format(alist[0].pkg_name), repo, alist)
239 setattr(self, "{0}_arc".format(alist[0].pkg_name), arc_path)
280 self.pkg("list -H -g {0}".format(self.empty_arc), exit=1)
281 self.pkg("list -H -g {0} -g {1}".format(self.empty_arc,
285 self.pkg("list -H -g {0}".format(self.foo_arc + ".nosuchpkg"),
290 self.pkg("list -H -g {0}".format(self.perm_arc), su_wrap=True, exit=1)
293 self.pkg("list -H -u -g {0}".format(sel
[all...]
H A Dt_pkg_image_create.py85 self.pkg("image-create --facet foo=NONE -p test1={0} {1}".format(
87 self.pkg("image-create --facet foo= -p test1={0} {1}".format(
89 self.pkg("image-create --facet foo -p test1={0} {1}".format(
92 self.pkg("image-create --set-property foo -p test1={0} {1}".format(
95 "foo=baz -p test1={0} {1}".format(self.rurl1, self.test_root),
97 self.pkg("image-create -g {0} {1}".format(self.rurl1, self.test_root),
99 self.pkg("image-create -m {0} {1}".format(self.rurl1, self.test_root),
101 self.pkg("image-create -g {0} -m {1} {2}".format(self.rurl1,
111 return "{0}/pkg/{1}/installed".format(imgdir,
118 fi = open("{0}/state/installed/{1}".format(imgdi
[all...]
H A Dt_sysrepo.py96 "No usage string printed: {0}".format(output))
102 ret, output, err = self.sysrepo("-R {0}".format(invalid_root),
105 "did not contain {0}: {1}".format(invalid_root, err))
111 ret, output, err = self.sysrepo("-c {0}".format(invalid_cache),
114 "did not contain {0}: {1}".format(invalid_cache, err))
120 ret, output, err = self.sysrepo("-h {0}".format(invalid_host),
123 "did not contain {0}: {1}".format(invalid_host, err))
129 ret, output, err = self.sysrepo("-l {0}".format(invalid_log),
132 "did not contain {0}: {1}".format(invalid_log, err))
136 ret, output, err = self.sysrepo("-l {0} -p {1}".format(
[all...]
H A Dt_pkg_linked.py77 p_data = "open {0}\n".format(p_foo1_name[i])
88 p_data = "open {0}\n".format(p_foo2_name[i])
100 p_data = "open {0}\n".format(p_sync1_name[i])
101 p_data += "add depend type=parent fmri={0}".format(
115 p_data = "open {0}\n".format(p_sync2_name[i])
116 p_data += "add depend type=parent fmri={0}".format(
147 name = "system:img{0:d}".format(i)
187 "found children: {4}\n".format(
199 "found children: {3}\n".format(
208 "image: {0:d}, {1}, {2}\n".format(
[all...]
H A Dt_pkg_composite.py116 name = "{0}_cert.pem".format(c)
135 "-i {i3} -i {i4} -i {i5} -i {i6} {pkg}".format(
198 self.pkgrepo("refresh -s {0}".format(self.empty_rurl))
202 self.pkgrepo("refresh -s {0}".format(self.void_rurl))
222 self.pkgrepo("refresh -s {0}".format(self.all_rurl))
225 self.pkgrecv(self.all_rurl, "-d {0} foo".format(self.foo_rurl))
226 self.pkgrepo("refresh -s {0}".format(self.foo_rurl))
229 self.pkgrecv(self.all_rurl, "-d {0} signed".format(self.signed_rurl))
230 self.pkgrepo("refresh -s {0}".format(self.signed_rurl))
241 "{0}.p5p".format(alis
[all...]
/pkg/src/util/log-scripts/
H A Din_header.py114 """.format(hostname, hostname, hostname)
H A Dan_report.py114 f = open("{0}.png".format(fileprefix), "w")
119 print("an_catalog: couldn't retrieve chart '{0}'".format(url),
127 f = open("{0}-{1}.dat".format(fileprefix, reportname), "w")
132 f = open("{0}-summary.html".format(fileprefix), "w")
144 <body>""".format(cap_title))
156 <h2>{0}</h2>""".format(cap_title)
182 msg = """<div class="{0}column">""".format(col)
189 msg = """</div> <!-- end class={0}column -->""".format(col)
218 chart_data = "{0:d}".format(data[i])
220 chart_data += ",{0:d}".format(dat
[all...]
/pkg/src/tests/perf/
H A Dfmribench.py244 print("# {0}".format(bname))
248 print("# {0:>6.2f}s {1:>9d}/sec".format(t, int(iter // t)))
251 print("#\n{0:40} {1:>9d}/sec".format(bname, int(itersum // tsum)))
257 print("#\n{0:40} <Test Failed>".format(bname))
H A Dactionbench.py52 print("{0:>20f} {1:>8d} actions/sec".format(t,
72 print("{0:>20f} {1:>8d} action comparisons/sec".format(t,
84 print("{0:>20f} {1:>8d} action comparisons/sec".format(t,
96 print("{0:>20f} {1:>8d} action comparisons/sec".format(t,
126 print("{0:>20f} {1:>8d} comparisons/sec".format(t,
145 print("{0:>20f} {1:>8d} actions to string/sec".format(t,
230 print("{0:>20f} {1:>8d} manifest contents loads/sec ({2:d} actions/sec)".format(
239 print("{0:>20f} {1:>8d} calls to id(action) /sec".format(t,
H A Dmembench.py44 return version.DotSequence("5.{0:d}".format(num))
50 return version.Version("0.5.11,5.11-0.{0:d}:{1:0=8d}T172804Z".format(num, num))
56 return fmri.PkgFmri("pkg:/SUNWttf-google-{0:d}@0.5.11,5.11-0.{1:d}:{2:0=8d}T233516Z".format(num, num, num))
72 collection.append(func(int("{0:0=4d}{1:0=2d}{2:0=2d}".format(y, m, d))))
76 print(func.__name__, "{0:d} rounds, estimated memory per object: {1:d} bytes".format(n, est))
H A Dmanbench.py129 "({2:d} actions/sec)".format(t, int(n // t), int((n * 60) // t)))
134 "({2:d} actions/sec)".format(t, int(n // t), int((n * 60) // t)))
/pkg/src/tests/
H A Dcertgenerator.py40 fh.write(self.openssl_conf.format(**conf_dict))
97 "-keyout", "{0}/{1}_key.pem".format(self.keys_dir, new_name),
98 "-out", "{0}/{1}.csr".format(self.chain_certs_dir, new_name),
99 "-sha256", "-subj", subj_str_to_use.format(new_name, new_name)]
105 "-out", "{0}/{1}_cert.pem".format(self.chain_certs_dir,
107 "-in", "{0}/{1}.csr".format(self.chain_certs_dir, new_name),
108 "-cert", "{0}/{1}/{2}_cert.pem".format(ta_path, parent_loc,
110 "-outdir", "{0}".format(self.chain_certs_dir),
111 "-keyfile", "{0}/{1}/{2}_key.pem".format(ta_path, self.keys_loc,
143 cmd = ["openssl", "genrsa", "-out", "{0}/{1}_key.pem".format(
[all...]
/pkg/src/modules/
H A Ddependency.py54 return "{0} => {1}".format(
57 return "{0} o> {1}".format(
60 return "{0} >> {1}".format(
H A Dsearch_errors.py46 " and restarting the depot.".format(self.cause)
63 "pid {pid} on {host}.").format(
77 "rebuild the index.".format(self.cause)
87 "{0}".format(self.index_dir)
99 return "existing_val was:{0}\nincoming_val was:{1}".format(
/pkg/src/modules/lint/
H A Dpkglint_manifest.py135 "{key} attribute").format(
138 msgid="{0}{1}.1".format(self.name,
147 lint_id = "{0}{1}.2".format(self.name, pkglint_id)
165 "set or signature actions").format(manifest.fmri),
174 "set or signature actions").format(manifest.fmri),
180 lint_id = "{0}{1}.3".format(self.name, pkglint_id)
196 "{deps}".format(pkg=manifest.fmri, deps=" ".join(
216 invalid_action_id = "{0}{1}.1".format(self.name, pkglint_id)
236 "other than set, depend or signature actions").format(
247 "other than set, depend or signature actions").format(
[all...]
/pkg/src/modules/client/
H A Dpkgremote.py97 prefix = "PkgRemote({0}) client thread 1: ".format(
100 prefix = "PkgRemote({0}) client thread 2: ".format(
103 prefix = "PkgRemote({0}) client: ".format(id(self))
106 # logging-format-interpolation; pylint: disable=W1202
107 global_settings.logger.info("{0}{1}".format(prefix, msg))
123 "--runid={0}".format(global_settings.client_runid),
125 "--ctlfd={0}".format(server_cmd_pipe),
126 "--progfd={0}".format(server_prog_pipe_fobj.fileno()),
129 self.__debug_msg("RPC server cmd: {0}".format(
250 "{0} == {1}".format(sel
[all...]
/pkg/src/tests/api/
H A Dt_pkglint.py56 pkglintrcfile = "{0}/usr/share/lib/pkg/pkglintrc".format(pkg5unittest.g_pkg_path)
2245 def format(self, msg, ignore_linted=False): member in class:TestLogFormatter
2252 self.messages.append("{0}\t{1}".format(
2253 "pkglint001.6", "Logging error: {0}".format(err)))
2258 "Linted message: {id} {msg}").format(
2260 self.messages.append("{0}\t{1}".format(
2266 self.messages.append("{0}\t{1}".format(
2283 self.debug("running lint checks on {0}".format(manifest))
2302 "Checker exception thrown for {0}: {1}".format(
2310 "Expected {0} failures for {1}, got {2}: {3}".format(
[all...]
/pkg/src/modules/client/linkedimage/
H A D__init__.py55 _module = __import__("{0}.{1}".format(__name__, _modname),
63 if _i[1].__module__ == ("{0}.{1}".format(__name__, _modname))
73 Invalid linked image plugin class '{0}' for plugin '{1}'""".format(

Completed in 1547 milliseconds

12345678910