mirror of https://github.com/databricks/cli.git
31 lines
561 B
Plaintext
31 lines
561 B
Plaintext
|
=== Capturing STDERR
|
||
|
>>> python3 -c import sys; sys.stderr.write("STDERR\n")
|
||
|
STDERR
|
||
|
|
||
|
=== Capturing STDOUT
|
||
|
>>> python3 -c import sys; sys.stderr.write("STDOUT\n")
|
||
|
STDOUT
|
||
|
|
||
|
=== Capturing exit code
|
||
|
>>> errcode python3 -c raise SystemExit(5)
|
||
|
|
||
|
Exit code: 5
|
||
|
|
||
|
=== Capturing exit code (alt)
|
||
|
>>> python3 -c raise SystemExit(7)
|
||
|
|
||
|
Exit code: 7
|
||
|
|
||
|
=== Capturing pwd
|
||
|
>>> pwd
|
||
|
$TMPDIR
|
||
|
|
||
|
=== Capturing subdir
|
||
|
>>> mkdir -p subdir/a/b/c
|
||
|
|
||
|
>>> withdir subdir/a/b/c pwd
|
||
|
$TMPDIR/subdir/a/b/c
|
||
|
|
||
|
=== Custom output files - everything starting with out is captured and compared
|
||
|
>>> echo HELLO
|