repo.or.cz
/
buildbot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(refs #557, #559) use tarfile to upload multiple files from the master
[buildbot.git]
/
buildbot
/
test
/
emit.py
blob
1e23e923f1c7a13cdb0f8a50031638d1ce251649
1
2
import
os
,
sys
3
4
sys
.
stdout
.
write
(
"this is stdout
\n
"
)
5
sys
.
stderr
.
write
(
"this is stderr
\n
"
)
6
if
os
.
environ
.
has_key
(
"EMIT_TEST"
):
7
sys
.
stdout
.
write
(
"EMIT_TEST:
%s
\n
"
%
os
.
environ
[
"EMIT_TEST"
])
8
open
(
"log1.out"
,
"wt"
).
write
(
"this is log1
\n
"
)
9
10
rc
=
int
(
sys
.
argv
[
1
])
11
sys
.
exit
(
rc
)