cancel
Showing results for 
Search instead for 
Did you mean: 
mathewl1
Cadet
Cadet
  • 438 Views

What am I missing I feel like I have done the script right but still get the fail on the grading

Jump to solution

Lab 1A improve command-line productivity still getting fail on last 2 parts everything else passes what am i missing

Labels (1)
  • 1

18 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 122 Views

@mathewl1 may be you mean that in your  script the number / count of "#" is less than what is hardcoded in the grading script :

echo "#####"  

 

Can you make sure you have copied this exact number of # in your script and then grade and verify ?

Not sure but this is what I deduced from your message.

0 Kudos
mathewl1
Cadet
Cadet
  • 121 Views
Yes I did, I'll run again maybe I missed one. so that can cause that error?
Chetan_Tiwary_
Community Manager
Community Manager
  • 119 Views

@mathewl1 try that - it could be if that is hardcoded. 

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 116 Views

@mathewl1 I just confirmed it - if you dont put the count of "#" as shown in the lab - it wont grade you pass in that particular step :

Chetan_Tiwary__0-1763740450699.png

here I have put 4 #s- hence failed.

0 Kudos
Chetan_Tiwary_
Community Manager
Community Manager
  • 116 Views

@mathewl1 when I put 5 "#"  as shown in the lab - it graded me pass in that step : 

Chetan_Tiwary__1-1763740529173.png

that means 5 # is hardcoded in the grading script. 

0 Kudos
mathewl1
Cadet
Cadet
  • 114 Views
I see I was told those #'s are arbitrary in the number used so that helps allot I will try that in the next lab I do
Chetan_Tiwary_
Community Manager
Community Manager
  • 112 Views

@mathewl1 I believe it is not arbitrary as long as it is mentioned in the instruction inside echo command ( exam or course ) :

Chetan_Tiwary__1-1763741148167.png

 

If the instruction says you need to echo something "xyz"  - then that exact string ( including characters ) is not arbitrary.

 

0 Kudos
Travis
Moderator
Moderator
  • 209 Views

@mathewl1 -

Just like with exams, we must be exact. The grading in our courses could be a little bit different than an actual exam, however, when we are told to do something with an output of ##, it might be looking for exactly the ##, not #, or not ###.

In this instance the grading is doing ...

$(grep "^#####$" ${output1} | wc -l) -eq 4 $(grep "^#####$" ${output1} | wc -l) -eq 4 

So we are actually searching for strict matching in the output file. So this would fail with too many or too few #.

Travis Michette, RHCA XIII
https://rhtapps.redhat.com/verify?certId=111-134-086
SENIOR TECHNICAL INSTRUCTOR / CERTIFIED INSTRUCTOR AND EXAMINER
Red Hat Certification + Training
mathewl1
Cadet
Cadet
  • 65 Views

Thnak you! I feel so dumb for the easy overlook on that but I was told it was arbitrary for how many # were used so didnt even think about that, thank you for helping me out finally got the pass! Have a great day and thank you again!

0 Kudos
Join the discussion
You must log in to join this conversation.