Skip to content

Commit

Permalink
[test/spec-cpp] Try timeout of 10 seconds.
Browse files Browse the repository at this point in the history
For some reason this task started hanging on both Github Actions and
sourcehut.  Logs aren't very useful.

It could be a recurrence of the issue related to #970.

- test/lint: Fix build.
  • Loading branch information
Andy C committed Jan 27, 2022
1 parent f87590f commit 73b5fa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/pyos.py
Expand Up @@ -24,6 +24,8 @@
from core.comp_ui import _IDisplay
from osh.builtin_process import _TrapHandler

_ = log


EOF_SENTINEL = 256 # bigger than any byte
NEWLINE_CH = 10 # ord('\n')
Expand Down
2 changes: 2 additions & 0 deletions test/spec-cpp.sh
Expand Up @@ -67,7 +67,9 @@ run-with-osh-eval() {
local base_dir=_tmp/spec/$SPEC_JOB

# Run it with 3 versions of OSH. And output TSV so we can compare the data.
# 2022-01: Try 10 second timeout.
sh-spec spec/$test_name.test.sh \
--timeout 10 \
--tsv-output $base_dir/${test_name}.tsv \
$REPO_ROOT/bin/osh \
$REPO_ROOT/bin/osh_eval \
Expand Down

0 comments on commit 73b5fa3

Please sign in to comment.