Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab1测试不能通过 #3

Open
JeremyLIU1997 opened this issue Sep 10, 2020 · 5 comments
Open

Lab1测试不能通过 #3

JeremyLIU1997 opened this issue Sep 10, 2020 · 5 comments

Comments

@JeremyLIU1997
Copy link

按照课程网页上的instruction运行了test,最后wc, indexer和crash三个测试都会失败

@fiddleboy
Copy link

我试了下作者的lab1是可以pass all test的。你的有报什么错吗?

@JeremyLIU1997
Copy link
Author

按照lab instruction,我在main目录运行sh test-mr.sh会出现如下log。因为我在mac环境运行没有timeout命令,因此把test-mr.sh文件中的所有timeout命令改成了gtimeout命令,应该是等效的。其余代码没有改动。不知可否分享你的log呢?

+ RACE=-race
+ rm -rf mr-tmp
+ mkdir mr-tmp
+ cd mr-tmp
+ rm -f 'mr-*'
+ cd ../../mrapps
+ go build -race -buildmode=plugin wc.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin indexer.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin mtiming.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin rtiming.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin crash.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin nocrash.go
+ cd ..
+ go build -race mrmaster.go
+ cd ..
+ go build -race mrworker.go
+ cd ..
+ go build -race mrsequential.go
+ failed_any=0
+ ../mrsequential ../../mrapps/wc.so ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
+ sort mr-out-0
+ rm -f mr-out-0
+ echo '***' Starting wc test.
*** Starting wc test.
+ sleep 1
+ gtimeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/13 21:42:44 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/wc.so
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/wc.so
+ wait
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/wc.so
+ grep .
+ sort mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ cmp mr-wc-all mr-correct-wc.txt
mr-wc-all mr-correct-wc.txt differ: char 1, line 1
+ echo --- wc output is not the same as mr-correct-wc.txt
--- wc output is not the same as mr-correct-wc.txt
+ echo --- wc test: FAIL
--- wc test: FAIL
+ failed_any=1
+ wait
+ wait
+ wait
+ rm -f mr-0-0 mr-0-1 mr-0-2 mr-0-3 mr-0-4 mr-0-5 mr-0-6 mr-0-7 mr-0-8 mr-0-9 mr-1-0 mr-1-1 mr-1-2 mr-1-3 mr-1-4 mr-1-5 mr-1-6 mr-1-7 mr-1-8 mr-1-9 mr-2-0 mr-2-1 mr-2-2 mr-2-3 mr-2-4 mr-2-5 mr-2-6 mr-2-7 mr-2-8 mr-2-9 mr-3-0 mr-3-1 mr-3-2 mr-3-3 mr-3-4 mr-3-5 mr-3-6 mr-3-7 mr-3-8 mr-3-9 mr-4-0 mr-4-1 mr-4-2 mr-4-3 mr-4-4 mr-4-5 mr-4-6 mr-4-7 mr-4-8 mr-4-9 mr-5-0 mr-5-1 mr-5-2 mr-5-3 mr-5-4 mr-5-5 mr-5-6 mr-5-7 mr-5-8 mr-5-9 mr-6-0 mr-6-1 mr-6-2 mr-6-3 mr-6-4 mr-6-5 mr-6-6 mr-6-7 mr-6-8 mr-6-9 mr-7-0 mr-7-1 mr-7-2 mr-7-3 mr-7-4 mr-7-5 mr-7-6 mr-7-7 mr-7-8 mr-7-9 mr-correct-wc.txt mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9 mr-wc-all
+ ../mrsequential ../../mrapps/indexer.so ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
+ sort mr-out-0
+ rm -f mr-out-0
+ echo '***' Starting indexer test.
*** Starting indexer test.
+ sleep 1
+ gtimeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/13 21:42:54 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/indexer.so
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/indexer.so
+ grep .
+ sort mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ cmp mr-indexer-all mr-correct-indexer.txt
mr-indexer-all mr-correct-indexer.txt differ: char 1, line 1
+ echo --- indexer output is not the same as mr-correct-indexer.txt
--- indexer output is not the same as mr-correct-indexer.txt
+ echo --- indexer test: FAIL
--- indexer test: FAIL
+ failed_any=1
+ wait
+ wait
+ echo '***' Starting map parallelism test.
*** Starting map parallelism test.
+ rm -f mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9 'mr-worker*'
+ sleep 1
+ gtimeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/13 21:42:59 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/mtiming.so
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/mtiming.so
++ grep '^times-'
++ wc -l
++ cat mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
++ sed 's/ //g'
+ NT=2
+ '[' 2 '!=' 2 ']'
+ grep '^parallel.* 2'
+ cat mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ echo --- map parallelism test: PASS
--- map parallelism test: PASS
+ wait
+ wait
+ echo '***' Starting reduce parallelism test.
*** Starting reduce parallelism test.
+ rm -f mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9 'mr-worker*'
+ sleep 1
+ gtimeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/13 21:43:06 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/rtiming.so
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/rtiming.so
++ grep '^[a-z] 2'
++ cat mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
++ wc -l
++ sed 's/ //g'
+ NT=6
+ '[' 6 -lt 2 ']'
+ echo --- reduce parallelism test: PASS
--- reduce parallelism test: PASS
+ wait
+ wait
+ ../mrsequential ../../mrapps/nocrash.so ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
+ sort mr-out-0
+ rm -f mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ echo '***' Starting crash test.
*** Starting crash test.
+ rm -f mr-done
+ sleep 1
+ gtimeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/13 21:43:14 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
++ id -u
+ SOCKNAME=/var/tmp/824-mr-501
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ gtimeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ touch mr-done
+ sleep 1
+ sleep 1
+ sleep 1
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ '[' -e /var/tmp/824-mr-501 -a '!' -f mr-done ']'
+ wait
+ wait
+ wait
+ rm /var/tmp/824-mr-501
+ grep .
+ sort mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ cmp mr-crash-all mr-correct-crash.txt
mr-crash-all mr-correct-crash.txt differ: char 1, line 1
+ echo --- crash output is not the same as mr-correct-crash.txt
--- crash output is not the same as mr-correct-crash.txt
+ echo --- crash test: FAIL
--- crash test: FAIL
+ failed_any=1
+ '[' 1 -eq 0 ']'
+ echo '***' FAILED SOME TESTS
*** FAILED SOME TESTS
+ exit 1

@yzongyue
Copy link
Owner

yzongyue commented Sep 14, 2020

我在 mac 下试了可以的

➜  main git:(yzy) ✗ uname -a
Darwin localhost 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul  5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64
➜  main git:(yzy) ✗ sh test-mr.sh
+ RACE=-race
+ rm -rf mr-tmp
+ mkdir mr-tmp
+ cd mr-tmp
+ rm -f 'mr-*'
+ cd ../../mrapps
+ go build -race -buildmode=plugin wc.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin indexer.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin mtiming.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin rtiming.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin crash.go
+ cd ../../mrapps
+ go build -race -buildmode=plugin nocrash.go
+ cd ..
+ go build -race mrmaster.go
+ cd ..
+ go build -race mrworker.go
+ cd ..
+ go build -race mrsequential.go
+ failed_any=0
+ ../mrsequential ../../mrapps/wc.so ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
+ sort mr-out-0
+ rm -f mr-out-0
+ echo '***' Starting wc test.
*** Starting wc test.
+ sleep 1
+ timeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/14 14:13:16 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ timeout -k 2s 180s ../mrworker ../../mrapps/wc.so
+ timeout -k 2s 180s ../mrworker ../../mrapps/wc.so
+ wait
+ timeout -k 2s 180s ../mrworker ../../mrapps/wc.so
+ grep .
+ sort mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ cmp mr-wc-all mr-correct-wc.txt
+ echo --- wc test: PASS
--- wc test: PASS
+ wait
+ wait
+ wait
+ rm -f mr-0-0 mr-0-1 mr-0-2 mr-0-3 mr-0-4 mr-0-5 mr-0-6 mr-0-7 mr-0-8 mr-0-9 mr-1-0 mr-1-1 mr-1-2 mr-1-3 mr-1-4 mr-1-5 mr-1-6 mr-1-7 mr-1-8 mr-1-9 mr-2-0 mr-2-1 mr-2-2 mr-2-3 mr-2-4 mr-2-5 mr-2-6 mr-2-7 mr-2-8 mr-2-9 mr-3-0 mr-3-1 mr-3-2 mr-3-3 mr-3-4 mr-3-5 mr-3-6 mr-3-7 mr-3-8 mr-3-9 mr-4-0 mr-4-1 mr-4-2 mr-4-3 mr-4-4 mr-4-5 mr-4-6 mr-4-7 mr-4-8 mr-4-9 mr-5-0 mr-5-1 mr-5-2 mr-5-3 mr-5-4 mr-5-5 mr-5-6 mr-5-7 mr-5-8 mr-5-9 mr-6-0 mr-6-1 mr-6-2 mr-6-3 mr-6-4 mr-6-5 mr-6-6 mr-6-7 mr-6-8 mr-6-9 mr-7-0 mr-7-1 mr-7-2 mr-7-3 mr-7-4 mr-7-5 mr-7-6 mr-7-7 mr-7-8 mr-7-9 mr-correct-wc.txt mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9 mr-wc-all
+ ../mrsequential ../../mrapps/indexer.so ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
+ sort mr-out-0
+ rm -f mr-out-0
+ echo '***' Starting indexer test.
*** Starting indexer test.
+ sleep 1
+ timeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/14 14:13:26 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ timeout -k 2s 180s ../mrworker ../../mrapps/indexer.so
+ timeout -k 2s 180s ../mrworker ../../mrapps/indexer.so
+ grep .
+ sort mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ cmp mr-indexer-all mr-correct-indexer.txt
+ echo --- indexer test: PASS
--- indexer test: PASS
+ wait
+ wait
+ echo '***' Starting map parallelism test.
*** Starting map parallelism test.
+ rm -f mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9 'mr-worker*'
+ sleep 1
+ timeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/14 14:13:30 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ timeout -k 2s 180s ../mrworker ../../mrapps/mtiming.so
+ timeout -k 2s 180s ../mrworker ../../mrapps/mtiming.so
++ grep '^times-'
++ wc -l
++ cat mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
++ sed 's/ //g'
+ NT=2
+ '[' 2 '!=' 2 ']'
+ grep '^parallel.* 2'
+ cat mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ echo --- map parallelism test: PASS
--- map parallelism test: PASS
+ wait
+ wait
+ echo '***' Starting reduce parallelism test.
*** Starting reduce parallelism test.
+ rm -f mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9 'mr-worker*'
+ sleep 1
+ timeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/14 14:13:37 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ timeout -k 2s 180s ../mrworker ../../mrapps/rtiming.so
+ timeout -k 2s 180s ../mrworker ../../mrapps/rtiming.so
++ grep '^[a-z] 2'
++ wc -l
++ cat mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
++ sed 's/ //g'
+ NT=8
+ '[' 8 -lt 2 ']'
+ echo --- reduce parallelism test: PASS
--- reduce parallelism test: PASS
+ wait
+ wait
+ ../mrsequential ../../mrapps/nocrash.so ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
+ sort mr-out-0
+ rm -f mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ echo '***' Starting crash test.
*** Starting crash test.
+ rm -f mr-done
+ sleep 1
+ timeout -k 2s 180s ../mrmaster ../pg-being_ernest.txt ../pg-dorian_gray.txt ../pg-frankenstein.txt ../pg-grimm.txt ../pg-huckleberry_finn.txt ../pg-metamorphosis.txt ../pg-sherlock_holmes.txt ../pg-tom_sawyer.txt
2020/09/14 14:13:45 rpc.Register: method "Done" has 1 input parameters; needs exactly three
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
++ id -u
+ SOCKNAME=/var/tmp/824-mr-502
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ timeout -k 2s 180s ../mrworker ../../mrapps/crash.so
+ touch mr-done
+ sleep 1
+ sleep 1
+ sleep 1
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ '[' -e /var/tmp/824-mr-502 -a '!' -f mr-done ']'
+ wait
+ wait
+ wait
+ rm /var/tmp/824-mr-502
+ grep .
+ sort mr-out-0 mr-out-1 mr-out-2 mr-out-3 mr-out-4 mr-out-5 mr-out-6 mr-out-7 mr-out-8 mr-out-9
+ cmp mr-crash-all mr-correct-crash.txt
+ echo --- crash test: PASS
--- crash test: PASS
+ '[' 0 -eq 0 ']'
+ echo '***' PASSED ALL TESTS
*** PASSED ALL TESTS
➜  main git:(yzy) ✗ which timeout
timeout: aliased to gtimeout

@TimothySY
Copy link

可以试试 brew install coreutils
安装之后就可以通过了

@DanielCorleone2001
Copy link

请问楼主找到解决方法了吗?我是在centos上跑的,也是有些test没有通过呢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants