mirror of https://github.com/databricks/cli.git
remove daemon acceptance tests
This commit is contained in:
parent
96ade4eee6
commit
d7abb3bd97
|
@ -1,7 +0,0 @@
|
||||||
[parent] started child
|
|
||||||
[parent] input sent to child: Hello from the other side
|
|
||||||
[parent] exiting
|
|
||||||
[child][wait_pid] process has ended
|
|
||||||
[child] Parent process has exited
|
|
||||||
[child] input from parent: Hello from the other side
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[script] waiting for child process to end...
|
|
||||||
[script][wait_pid] process has ended
|
|
|
@ -1,21 +0,0 @@
|
||||||
export DATABRICKS_CLI_SELFTEST_CHILD_OUTPUT_FILE="out.parentchild.txt"
|
|
||||||
|
|
||||||
$CLI selftest parent > "out.parentchild.txt"
|
|
||||||
|
|
||||||
echo "[script] waiting for child process to end..."
|
|
||||||
echo -n "[script]"
|
|
||||||
wait_pid $(cat ./child.pid)
|
|
||||||
|
|
||||||
rm ./child.pid
|
|
||||||
|
|
||||||
# README:
|
|
||||||
# This test validates two features of libs/daemon:
|
|
||||||
# 1. The parent process does not wait for the child process to end.
|
|
||||||
# 2. The child process correctly receives input from the parent process.
|
|
||||||
#
|
|
||||||
# Property (1) is validated because the child process waits for its parent process
|
|
||||||
# to end before it writes to stdout.
|
|
||||||
#
|
|
||||||
# Property (2) is directly validated by the output of the child process.
|
|
||||||
#
|
|
||||||
# See the code for "selftest parent" and "selftest child" commands for more details.
|
|
|
@ -1,6 +0,0 @@
|
||||||
[parent] started child
|
|
||||||
[parent] input sent to child: Hello from the other side
|
|
||||||
[parent] exiting
|
|
||||||
[script] waiting for child process to end...
|
|
||||||
[script][wait_pid] process has ended
|
|
||||||
[script] child process should not have written any output.
|
|
|
@ -1,13 +0,0 @@
|
||||||
$CLI selftest parent
|
|
||||||
|
|
||||||
echo "[script] waiting for child process to end..."
|
|
||||||
echo -n "[script]"
|
|
||||||
wait_pid $(cat ./child.pid)
|
|
||||||
|
|
||||||
echo "[script] child process should not have written any output."
|
|
||||||
|
|
||||||
rm ./child.pid
|
|
||||||
|
|
||||||
# README:
|
|
||||||
# THis test validates that stdout / stderr from the child process are not leaked
|
|
||||||
# to the parent process's output.
|
|
Loading…
Reference in New Issue