From 99c09265968b38f3ced93982efcf50a206782b52 Mon Sep 17 00:00:00 2001 From: reuben olinsky Date: Wed, 25 Sep 2024 20:38:51 -0700 Subject: [PATCH] test: don't use /tmp for now in testing --- brush-shell/tests/cases/builtins/cd.yaml | 4 ++-- brush-shell/tests/cases/builtins/pushd_popd_dirs.yaml | 6 +++--- brush-shell/tests/cases/builtins/pwd.yaml | 2 +- brush-shell/tests/cases/prompt.yaml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/brush-shell/tests/cases/builtins/cd.yaml b/brush-shell/tests/cases/builtins/cd.yaml index 39315656..667d4e32 100644 --- a/brush-shell/tests/cases/builtins/cd.yaml +++ b/brush-shell/tests/cases/builtins/cd.yaml @@ -8,8 +8,8 @@ cases: echo $? echo "pwd: $PWD" - echo "cd tmp" - cd tmp + echo "cd usr" + cd usr echo $? echo "pwd: $PWD" diff --git a/brush-shell/tests/cases/builtins/pushd_popd_dirs.yaml b/brush-shell/tests/cases/builtins/pushd_popd_dirs.yaml index 44bc5acd..a256704e 100644 --- a/brush-shell/tests/cases/builtins/pushd_popd_dirs.yaml +++ b/brush-shell/tests/cases/builtins/pushd_popd_dirs.yaml @@ -46,7 +46,7 @@ cases: - name: "dirs with tilde replacement" stdin: | - HOME=/tmp + HOME=/usr cd ~ echo "PWD: $PWD" dirs @@ -54,8 +54,8 @@ cases: - name: "dirs to clear" stdin: | - cd /tmp - pushd /tmp + cd /usr + pushd /usr pushd / dirs -c dirs diff --git a/brush-shell/tests/cases/builtins/pwd.yaml b/brush-shell/tests/cases/builtins/pwd.yaml index dcab93a9..c216e0ba 100644 --- a/brush-shell/tests/cases/builtins/pwd.yaml +++ b/brush-shell/tests/cases/builtins/pwd.yaml @@ -6,6 +6,6 @@ cases: pwd echo "Result: $?" # - cd tmp + cd usr pwd echo "Result: $?" diff --git a/brush-shell/tests/cases/prompt.yaml b/brush-shell/tests/cases/prompt.yaml index efb93162..1bca3d71 100644 --- a/brush-shell/tests/cases/prompt.yaml +++ b/brush-shell/tests/cases/prompt.yaml @@ -16,7 +16,7 @@ cases: - name: "Working dir based prompts" stdin: | - cd /tmp + cd /usr prompt='\w ' echo "Prompt: '${prompt@P}'"