Module 2 build failure

When I am tring to submit the code for module2 ,it is getting failed for milestone2 and passes for all other milestones and in the log file it is difficult to figure out what error is there.
please help

@Aniket
What does the unit test log file say about the reason for failing the assessment?

I am getting this Error in log file
2020-02-13 18:22:38,719 unitTesting INFO Running command_runner
2020-02-13 18:22:38,720 unitTesting INFO Module setup complete!
2020-02-13 18:22:38,720 unitTesting INFO Starting assessment…
2020-02-13 18:22:38,720 unitTesting INFO Assessing check_QBox_server_cpu.sh
2020-02-13 18:22:39,367 unitTesting ERROR /kumaraniket899-ME_QBOX-cd7cb7a4-4e8d-11ea-8267-ddb99570d351/execution_dir/check_QBox_server_cpu.sh /proc/cpuinfo returncode > 0! Check your code.
2020-02-13 18:22:39,369 unitTesting INFO File: check_QBox_server_cpu.sh | Status: TEST_STATUS_FAILURE
2020-02-13 18:22:39,370 unitTesting INFO Assessing check_QBox_server_memory.sh
2020-02-13 18:22:40,048 unitTesting INFO File: check_QBox_server_memory.sh | Status: TEST_STATUS_SUCCESS
2020-02-13 18:22:40,049 unitTesting INFO Assessing check_QBox_server_OS.sh
2020-02-13 18:22:40,683 unitTesting INFO File: check_QBox_server_OS.sh | Status: TEST_STATUS_SUCCESS
2020-02-13 18:22:40,684 unitTesting INFO Skipping module test: check_QBox_server_disk_space.sh
2020-02-13 18:22:40,685 unitTesting INFO Assessment finished!
2020-02-13 18:22:40,685 unitTesting INFO Starting cleanup…

Try to execute check_QBox_server_cpu.sh file at the terminal and you can figure out the difference between the desired and actual output.

It’s working fine on the terminal and giving desired output, but on submission it is failing

Follow the TODO’s properly , like using cat $1.

Rest of the 3 milestones are passing the testcases without using cat,as I am not gettin the line of TODO about “cat $1”,but failing on mile 2

The “cat $1” is the first command line argument.

for example :-
if you run ./abcd.sh X Y Z , then X is the first cmd line arg ($1), Y is the second cmd line arg ($2) and so on…

2020-02-13 18:22:38,719 unitTesting INFO Running command_runner
2020-02-13 18:22:38,720 unitTesting INFO Module setup complete!
2020-02-13 18:22:38,720 unitTesting INFO Starting assessment…
2020-02-13 18:22:38,720 unitTesting INFO Assessing check_QBox_server_cpu.sh
2020-02-13 18:22:39,367 unitTesting ERROR /kumaraniket899-ME_QBOX-cd7cb7a4-4e8d-11ea-8267-ddb99570d351/execution_dir/check_QBox_server_cpu.sh /proc/cpuinfo returncode > 0! Check your code.
2020-02-13 18:22:39,369 unitTesting INFO File: check_QBox_server_cpu.sh | Status: TEST_STATUS_FAILURE
2020-02-13 18:22:39,370 unitTesting INFO Assessing check_QBox_server_memory.sh
2020-02-13 18:22:40,048 unitTesting INFO File: check_QBox_server_memory.sh | Status: TEST_STATUS_SUCCESS
2020-02-13 18:22:40,049 unitTesting INFO Assessing check_QBox_server_OS.sh
2020-02-13 18:22:40,683 unitTesting INFO File: check_QBox_server_OS.sh | Status: TEST_STATUS_SUCCESS
2020-02-13 18:22:40,684 unitTesting INFO Skipping module test: check_QBox_server_disk_space.sh
2020-02-13 18:22:40,685 unitTesting INFO Assessment finished!
2020-02-13 18:22:40,685 unitTesting INFO Starting cleanup…

@Aniket Please refer to the following post