Project

General

Profile

Actions

Bug #17988

closed

tests: osd-scrub-repair.sh fails when stty reports 0 columns

Added by Loïc Dachary over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
David Zafman
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When running the test from within an emacs buffer,

[loic@rex001 build]$ stty -a | head -1 | sed -e 's/.*columns \([0-9]*\).*/\1/'                                                                                                 
0                                                                                                                                                                              
[loic@rex001 build]$ stty -a                                                                                                                                                   
speed 38400 baud; rows 0; columns 0; line = 0;                                                                                                                                 
intr = ^C; quit = ^\; erase = <undef>; kill = <undef>; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;    
lnext = ^V; flush = ^O; min = 1; time = 0;                                                                                                                                     
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts                                                                                                                      
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8                                                                   
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0                                                                                               
isig icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke                                                                                    
[loic@rex001 build]$ 

and the test fail with
/home/loic/ceph-ubuntu-14.04-loic/src/test/osd/osd-scrub-repair.sh:1811: TEST_corrupt_scrub_erasure:  diff -y -W 0 td/osd-scrub-repair/checkcsjson td/osd-scrub-repair/csjson
diff: invalid width '0'
diff: Try 'diff --help' for more information.
/home/loic/ceph-ubuntu-14.04-loic/src/test/osd/osd-scrub-repair.sh:1811: TEST_corrupt_scrub_erasure:  test no = yes
/home/loic/ceph-ubuntu-14.04-loic/src/test/osd/osd-scrub-repair.sh:1811: TEST_corrupt_scrub_erasure:  return 1

Actions #1

Updated by David Zafman over 7 years ago

  • Status changed from New to Resolved
  • Assignee set to David Zafman

Part of this pull request
https://github.com/ceph/ceph/pull/12146
in commit
b425290a927e46601e93e0af17d2b378b7340381

Actions

Also available in: Atom PDF