remzi-arpacidusseau/ostep-projects

[initial-xv6] test-getreadcount.sh: expect: spawn id exp4 not open

sd2048 opened this issue · 1 comments

I modified the xv6 code to add getreadcount(), which for now just returns 42. However I'm having a problem with the testing script(s):

$ ./test-getreadcount.sh
doing one-time pre-test (use -s to suppress)
../tester/xv6-edit-makefile.sh: line 6: gawk: command not found
make: *** No rule to make target 'clean'.  Stop.
make: Nothing to be done for 'xv6.img'.
make: Nothing to be done for 'fs.img'.

test 1: out incorrect
  what results should be found in file: tests/1.out
  what results produced by your program: tests-out/1.out
  compare the two using diff, cmp, or related tools to debug, e.g.:
  prompt> diff tests/1.out tests-out/1.out

$ cat tests-out/1.err
expect: spawn id exp4 not open
    while executing
"expect "$ ""
    (file "../../tester/run-xv6-command.exp" line 25)

The problem was that "gawk" was not installed.