From d7abb3bd97711b6b8ccbbb9293eb35c165983c45 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 21 Feb 2025 15:56:28 +0100 Subject: [PATCH] remove daemon acceptance tests --- .../daemon/child-detaches/out.parentchild.txt | 7 ------- acceptance/daemon/child-detaches/output.txt | 2 -- acceptance/daemon/child-detaches/script | 21 ------------------- .../daemon/child-discards-output/output.txt | 6 ------ .../daemon/child-discards-output/script | 13 ------------ 5 files changed, 49 deletions(-) delete mode 100644 acceptance/daemon/child-detaches/out.parentchild.txt delete mode 100644 acceptance/daemon/child-detaches/output.txt delete mode 100644 acceptance/daemon/child-detaches/script delete mode 100644 acceptance/daemon/child-discards-output/output.txt delete mode 100644 acceptance/daemon/child-discards-output/script diff --git a/acceptance/daemon/child-detaches/out.parentchild.txt b/acceptance/daemon/child-detaches/out.parentchild.txt deleted file mode 100644 index e4223edfd..000000000 --- a/acceptance/daemon/child-detaches/out.parentchild.txt +++ /dev/null @@ -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 - diff --git a/acceptance/daemon/child-detaches/output.txt b/acceptance/daemon/child-detaches/output.txt deleted file mode 100644 index 1e14c4514..000000000 --- a/acceptance/daemon/child-detaches/output.txt +++ /dev/null @@ -1,2 +0,0 @@ -[script] waiting for child process to end... -[script][wait_pid] process has ended diff --git a/acceptance/daemon/child-detaches/script b/acceptance/daemon/child-detaches/script deleted file mode 100644 index 32534c6f5..000000000 --- a/acceptance/daemon/child-detaches/script +++ /dev/null @@ -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. diff --git a/acceptance/daemon/child-discards-output/output.txt b/acceptance/daemon/child-discards-output/output.txt deleted file mode 100644 index 3e92a5cb3..000000000 --- a/acceptance/daemon/child-discards-output/output.txt +++ /dev/null @@ -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. diff --git a/acceptance/daemon/child-discards-output/script b/acceptance/daemon/child-discards-output/script deleted file mode 100644 index bef0fa43d..000000000 --- a/acceptance/daemon/child-discards-output/script +++ /dev/null @@ -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.