Nitin,

Please make sure that *patch* is installed on your system. As the test o/p
shows, your test has failed while doing patch. Please install patch and try
again.

You could install patch in the following way:
sudo apt-get install patch
or
sudo apt-get install build-essential


Regards,
Samir


On Tue, May 10, 2011 at 11:51 AM, Nitin Kshirsagar <[email protected]>wrote:

> Hi,
>
> I have ran fio test on my local machine it is failing for me.
> Please can anyone help me.
>
> root@kqinfo-VirtualBox:/usr/local/autotest# bin/autotest --verbose
> tests/fio/control
> 11:41:57 INFO | Writing results to /usr/local/autotest/results/default
> 11:41:57 INFO | Initializing the state engine
> 11:41:57 DEBUG| Persistent state client.steps now set to []
> 11:41:57 DEBUG| Persistent option harness now set to None
> 11:41:57 DEBUG| Persistent option harness_args now set to None
> 11:41:57 DEBUG| Selected harness: standalone
> 11:41:57 INFO | Symlinking init scripts
> 11:41:57 DEBUG| Running 'ln -sf /usr/local/autotest/tools/autotest
> /etc/init.d/autotest'
> 11:41:57 DEBUG| Running 'ln -sf /usr/local/autotest/tools/autotest
> /etc/rc2.d/S99autotest'
> 11:41:57 DEBUG| Dropping caches
> 11:41:57 DEBUG| Running 'sync'
> 11:41:57 DEBUG| Running 'echo 3 > /proc/sys/vm/drop_caches'
> 11:41:57 DEBUG| Running 'gzip -9
> "/usr/local/autotest/results/default/sysinfo/dmesg"'
> 11:41:57 DEBUG| Running 'dpkg -l'
> 11:41:57 INFO | START    ----    ----    timestamp=1305007917
> localtime=May 10 11:41:57
> 11:41:57 DEBUG| Persistent state client._record_indent now set to 1
> 11:41:57 INFO |     START    fio    fio    timestamp=1305007917
> localtime=May 10 11:41:57
> 11:41:57 DEBUG| Persistent state client._record_indent now set to 2
> 11:41:57 DEBUG| Persistent state client.unexpected_reboot now set to
> ('fio', 'fio')
> 11:41:57 DEBUG| Running 'python -c 'import sys; print sys.version_info[0],
> sys.version_info[1]''
> 11:41:57 DEBUG| Crash handling enabled
> 11:41:57 DEBUG| Running 'dpkg -l'
> 11:41:57 DEBUG| Running 'which gcc'
> 11:41:57 DEBUG| [stdout] /usr/bin/gcc
> 11:41:57 DEBUG| Running 'zcat /usr/local/autotest/tests/fio/fio-1.53.tar.gz
> | tar xvf - 2>/dev/null'
> 11:41:58 INFO | Dependency libaio successfuly built
> 11:41:58 DEBUG| Running 'patch -p1 < ../Makefile.patch'
> 11:41:58 DEBUG| [stdout] patching file Makefile
> 11:41:58 DEBUG| [stdout] Hunk #1 FAILED at 2.
> 11:41:58 DEBUG| [stdout] Hunk #2 FAILED at 28.
> 11:41:58 DEBUG| [stdout] 2 out of 2 hunks FAILED -- saving rejects to file
> Makefile.rej
> 11:41:58 ERROR| Exception escaping from test:
> Traceback (most recent call last):
>   File "/usr/local/autotest/common_lib/test.py", line 395, in _exec
>     *p_args, **p_dargs)
>   File "/usr/local/autotest/common_lib/base_utils.py", line 604, in
> update_version
>     install(*args, **dargs)
>   File "/usr/local/autotest/tests/fio/fio.py", line 24, in setup
>     utils.system('patch -p1 < ../Makefile.patch')
>   File "/usr/local/autotest/common_lib/base_utils.py", line 897, in system
>     stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS).exit_status
>   File "/usr/local/autotest/common_lib/base_utils.py", line 658, in run
>     "Command returned non-zero exit status")
> CmdError: Command <patch -p1 < ../Makefile.patch> failed, rc=1, Command
> returned non-zero exit status
> * Command:
>     patch -p1 < ../Makefile.patch
> Exit status: 1
> Duration: 0.0086510181427
>
> stdout:
> patching file Makefile
> Hunk #1 FAILED at 2.
> Hunk #2 FAILED at 28.
> 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
> 11:41:58 DEBUG| Logging subprocess finished
> 11:41:58 DEBUG| Logging subprocess finished
> 11:41:58 DEBUG| Running 'gzip -9
> "/usr/local/autotest/results/default/fio/sysinfo/dmesg"'
> 11:41:58 DEBUG| Running 'grep MemTotal /proc/meminfo'
> 11:41:58 DEBUG| Running 'dpkg -l'
> 11:41:58 ERROR| child process failed
> 11:41:58 DEBUG| Traceback (most recent call last):
>   File "/usr/local/autotest/bin/parallel.py", line 18, in fork_start
>     l()
>   File "/usr/local/autotest/bin/job.py", line 522, in <lambda>
>     l = lambda : test.runtest(self, url, tag, args, dargs)
>   File "/usr/local/autotest/bin/test.py", line 115, in runtest
>     job.sysinfo.log_after_each_iteration)
>   File "/usr/local/autotest/common_lib/test.py", line 691, in runtest
>     mytest._exec(args, dargs)
>   File "/usr/local/autotest/common_lib/test.py", line 395, in _exec
>     *p_args, **p_dargs)
>   File "/usr/local/autotest/common_lib/base_utils.py", line 604, in
> update_version
>     install(*args, **dargs)
>   File "/usr/local/autotest/tests/fio/fio.py", line 24, in setup
>     utils.system('patch -p1 < ../Makefile.patch')
>   File "/usr/local/autotest/common_lib/base_utils.py", line 897, in system
>     stdout_tee=TEE_TO_LOGS, stderr_tee=TEE_TO_LOGS).exit_status
>   File "/usr/local/autotest/common_lib/base_utils.py", line 658, in run
>     "Command returned non-zero exit status")
> CmdError: Command <patch -p1 < ../Makefile.patch> failed, rc=1, Command
> returned non-zero exit status
> * Command:
>     patch -p1 < ../Makefile.patch
> Exit status: 1
> Duration: 0.0086510181427
>
> stdout:
> patching file Makefile
> Hunk #1 FAILED at 2.
> Hunk #2 FAILED at 28.
> 2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
>
> 11:41:58 INFO |         ERROR    fio    fio    timestamp=1305007918
> localtime=May 10 11:41:58    Command <patch -p1 < ../Makefile.patch> failed,
> rc=1, Command returned non-zero exit status
>   * Command:
>       patch -p1 < ../Makefile.patch
>   Exit status: 1
>   Duration: 0.0086510181427
>
>   stdout:
>   patching file Makefile
>   Hunk #1 FAILED at 2.
>   Hunk #2 FAILED at 28.
>   2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej
> 11:41:58 INFO |     END ERROR    fio    fio    timestamp=1305007918
> localtime=May 10 11:41:58
> 11:41:58 DEBUG| Persistent state client._record_indent now set to 1
> 11:41:58 DEBUG| Persistent state client.unexpected_reboot deleted
> 11:41:58 DEBUG| Dropping caches
> 11:41:58 DEBUG| Running 'sync'
> 11:41:58 DEBUG| Running 'echo 3 > /proc/sys/vm/drop_caches'
> 11:41:58 INFO | END GOOD    ----    ----    timestamp=1305007918
> localtime=May 10 11:41:58
> 11:41:58 DEBUG| Persistent state client._record_indent now set to 0
> 11:41:58 DEBUG| Logging subprocess finished
> 11:41:58 DEBUG| Logging subprocess finished
>
>
> --
> Thanks & Regards
> Nitin Kshirsagar
>
>
>
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
>
>
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to