Skip to content

Commit

Permalink
[test] Rename test/interactive -> test/stateful
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy C committed Jan 31, 2022
1 parent 218d5aa commit dfcf428
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions core/process.py
Expand Up @@ -1445,6 +1445,7 @@ def WaitForOne(self):
# running. Not sure if there's any real difference. bash and dash
# handle SIGINT pretty differently.
if self.exec_opts.interactive():
# TODO: fix status=130 bug here
# Caller should keep waiting. If we run 'sleep 3' and hit Ctrl-C, both
# processes will get SIGINT, but the shell has to wait again to get the
# exit code.
Expand Down
2 changes: 1 addition & 1 deletion soil/worker.sh
Expand Up @@ -109,7 +109,7 @@ lint test/lint.sh soil-run -
typecheck-slice types/oil-slice.sh soil-run -
typecheck-other types/run.sh soil-run -
unit test/unit.sh soil-run -
interactive test/interactive.sh soil-run -
stateful test/stateful.sh soil-run -
parse-errors test/parse-errors.sh soil-run-py -
runtime-errors test/runtime-errors.sh run-all-with-osh -
oil-runtime-errors test/oil-runtime-errors.sh run-all-with-osh -
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions test/interactive.sh → test/stateful.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Wrapper for test/interactive.py
# Wrapper for test cases in spec/stateful
#
# Usage:
# test/interactive.sh <function name>
Expand All @@ -14,7 +14,7 @@ export PYTHONPATH=.
run() {
### Wrapper for PYTHONPATH

test/interactive.py "$@"
spec/stateful/harness.py "$@"

}

Expand All @@ -24,7 +24,7 @@ all() {
### Run all tests

# TODO: source build/dev-shell.sh to change $PATH?
test/interactive.py --osh-failures-allowed $FAILURES_ALLOWED \
spec/stateful/harness.py --osh-failures-allowed $FAILURES_ALLOWED \
bin/osh ../oil_DEPS/spec-bin/bash "$@"
}

Expand All @@ -34,7 +34,7 @@ all-dev-minimal() {
# This is a hack for the 'dev-minimal' task in Soil. We don't have spec-bin,
# and the ovm-tarball container doesn't have python3 :-( Really we should
# build another container, but this is OK for now.
test/interactive.py --osh-failures-allowed $FAILURES_ALLOWED \
spec/stateful/harness.py --osh-failures-allowed $FAILURES_ALLOWED \
bin/osh bash "$@"
}

Expand Down

0 comments on commit dfcf428

Please sign in to comment.