诺胡普司令部获胜';不能使用TCL测试
我试图使用nohup一夜之间运行tcltest脚本。然而,tcltest似乎禁用了nohup的功能,并且总是在我关闭shell之后终止我的tcltest进程 例如 [root@demo测试]#cat 0199.test诺胡普司令部获胜';不能使用TCL测试,tcl,Tcl,我试图使用nohup一夜之间运行tcltest脚本。然而,tcltest似乎禁用了nohup的功能,并且总是在我关闭shell之后终止我的tcltest进程 例如 [root@demo测试]#cat 0199.test package require tcltest namespace import ::tcltest::* test Dummy {} -body { for { set i 1 } { $i < 3000 } { incr
package require tcltest
namespace import ::tcltest::*
test Dummy {} -body {
for { set i 1 } { $i < 3000 } { incr i } {
puts "round $i"
after 5000
}
} -result 0
cleanupTests
[root@demo测试]#cat nohup.out
Tests running in interp: /usr/bin/tclsh
Tests located in: /root/autotest/branches/2.3/test_suites/300_Cocktail/test
Tests running in: /root/autotest/branches/2.3/test_suites/300_Cocktail/test
Temporary files stored in /root/autotest/branches/2.3/test_suites/300_Cocktail/test
Test files run in separate interpreters
Running tests that match: *
Skipping test files that match: l.*.test
Only running test files that match: *.test
Tests began at Tue Sep 10 14:49:36 CST 2013
0199.test
round 1
round 2
round 3
round 4
round 5
round 6
round 7
Test file error: child killed: hangup
Tests ended at Tue Sep 10 14:50:11 CST 2013
all_test.sh: Total 0 Passed 0 Skipped 0 Failed 0
Sourced 1 Test Files.
Test files exiting with errors:
0199.test
你是怎么调用nohup的?我将ssh导入Ubuntu server 13.04系统,创建测试,并发出以下命令:
nohup all_test.sh &
logout
后来,当我回来时,我能够验证测试是否一直运行(并且失败了,但那是另一回事)。这是您的shell/nohup的问题。信号不应传播到测试程序。你使用哪个外壳?顺便说一句,那个测试会失败;
for
的结果是一个空字符串,而不是0
…
nohup all_test.sh &
logout