run-file () { local spec_name=$1; shift; local spec_file=spec/$spec_name.test.sh; local suite; suite=$(test/sh_spec.py --print-spec-suite $spec_file); local spec_subdir; case $suite in osh) spec_subdir='osh-cpp' ;; ysh) spec_subdir='ysh-cpp' ;; *) die "Invalid suite $suite" ;; esac; local base_dir=_tmp/spec/$spec_subdir; mkdir -v -p $base_dir; sh-spec $spec_file --timeout 10 --oils-bin-dir $PWD/bin --oils-cpp-bin-dir $REPO_ROOT/_bin/cxx-asan --tsv-output $base_dir/${spec_name}.tsv "$@" } assign-dialects: spec test case results

Results for assign-dialects.test.sh

statusoshosh-cpp
pass 11
FAIL 11
total22
caseoshosh-cppdescription
0pass pass K and V are variables in (( array[K] = V ))
1FAIL FAIL when are variables set with 'test -v'
detailsdetails
2 passed, 0 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh1 when are variables set with 'test -v'

[osh stdout] Expected 'unset=1\na=1\nA=1\na=0\nA=0\n', got 'unset=1\na=0\nA=0\na=0\nA=0\n'

stdout:
unset=1
a=0
A=0
a=0
A=0
stderr:
osh-cpp1 when are variables set with 'test -v'

[osh-cpp stdout] Expected 'unset=1\na=1\nA=1\na=0\nA=0\n', got 'unset=1\na=0\nA=0\na=0\nA=0\n'

stdout:
unset=1
a=0
A=0
a=0
A=0
stderr: