Fix some sched and tty tests

The ps sched test has been disabled. There are too many
odd build farms this fails in strange ways.

Other odd build farms have no tty and so some tests check
for no tty and skip if not found.
This commit is contained in:
Craig Small
2015-05-09 17:48:12 +10:00
parent c7abb6a6ed
commit 4050148a45
5 changed files with 26 additions and 15 deletions

View File

@@ -9,8 +9,7 @@ set not_uid [ expr { $uid + 1 } ]
set gid [ exec id -g ]
set not_gid [ expr { $gid + 1 } ]
set ps "${topdir}ps/pscommand"
set raw_tty [ exec tty ]
regexp "/dev/(.+)" $raw_tty > tty
set tty [ get_tty ]
set test "pkill with no arguments"
spawn $pkill