Skip to content

Commit e1d6216

Browse files
committed
testsuite: make flux alloc vi test more reliable
Problem: The `flux alloc vi works` test in t2712-python-cli-alloc.t occasionally fails because the vi statusline displaying the filename never appears. Actually, we just want to ensure that vi started and the file was loaded, so change the expected output to be the file contents, which should always be displayed unless there is a real issue.
1 parent d088779 commit e1d6216

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

t/t2712-python-cli-alloc.t

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,12 @@ test_expect_success 'flux alloc: resource.norestrict works in subinstance' '
173173
'
174174
test_expect_success 'flux alloc: flux alloc vi works' '
175175
cat <<-'EOF' >input.json &&
176-
[{"expect":"test\\\.txt", "send":":q!\n", "timeout":30}]
176+
[{"expect":"test text file", "send":":q!\n", "timeout":30}]
177177
EOF
178178
cat <<-EOF >test.txt &&
179179
test text file
180180
EOF
181-
$runpty -o vi.out --expect=input.json flux alloc -n1 vi test.txt &&
182-
grep "test text file" vi.out
181+
$runpty -o vi.out --expect=input.json flux alloc -n1 vi test.txt
183182
'
184183
test_expect_success 'flux alloc: flux alloc flux alloc works' '
185184
cat <<-'EOF' >input2.json &&

0 commit comments

Comments
 (0)