nareshkamboju

su debug test fail

Jul 17th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 2734 -n 2734 -p -f /tmp/ltp-lhXV8C6vEw/alltests -l /opt/ltp/results/LTP_RUN_ON-2017_07_17-18h_47m_00s.log -C /opt/ltp
  2. /output/LTP_RUN_ON-2017_07_17-18h_47m_00s.failed -T /opt/ltp/output/LTP_RUN_ON-2017_07_17-18h_47m_00s.tconf
  3. LOG File: /opt/ltp/results/LTP_RUN_ON-2017_07_17-18h_47m_00s.log
  4. FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-2017_07_17-18h_47m_00s.failed
  5. TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-2017_07_17-18h_47m_00s.tconf
  6. Running tests.......
  7. <<<test_start>>>
  8. tag=su01 stime=1500317225
  9. cmdline="export TCbin=$LTPROOT/testcases/bin;su01"
  10. contacts=""
  11. analysis=exit
  12. <<<test_output>>>
  13. incrementing stop
  14. This script contains bashism that needs to be fixed!
  15. Machine type is: linaro-linux
  16.  
  17. usermod: group 'trusted' does not exist
  18. usermod: group 'trusted' does not exist
  19. Starting 'su' Testing
  20.  
  21. TEST: su with no parameters and correct password
  22. spawn /bin/su -c whoami
  23. Password:
  24. root
  25. spawn su -c /bin/su root -c "echo \$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"
  26. Password:
  27. /bin/su with correct password & enviroment check ( PASSED )
  28.  
  29. TEST: su with no parameters and incorrect password
  30. spawn /bin/su -c whoami
  31. Password:
  32. su: Authentication failure
  33.  
  34. displayed_error=1
  35. exit_code=1
  36. pid=2905
  37. /bin/su with incorrect password ( PASSED )
  38.  
  39. TEST: su to root using name parameter and correct password.
  40. spawn /bin/su -l root -c whoami
  41. Password:
  42. root
  43. spawn /bin/sh -c /bin/su -l root -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT2""
  44. Password: /bin/su -l root with correct password & enviroment check ( PASSED )
  45.  
  46. TEST: su to root with name parameter and incorrect password.
  47. spawn /bin/su -l root -c whoami
  48. Password:
  49. su: Authentication failure
  50. /bin/su -l root with incorrect password ( PASSED )
  51. TEST: su to user1 with name parameter and correct password.
  52. spawn /bin/su -l su_usr2 -c whoami
  53. Password:
  54. mesg: cannot open /dev/pts/5: Permission denied
  55. su_usr2
  56. spawn /bin/sh -c /bin/su -l su_usr2 -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_USER""
  57. Password: /bin/su -l su_usr2 with correct password & enviroment check ( PASSED )
  58. TEST: su to user1 with name parameter and incorrect password.
  59. spawn /bin/su -l su_usr2 -c whoami
  60. Password:
  61. su: Authentication failure
  62. /bin/su -l su_usr2 with incorrect password ( PASSED )
  63. TEST: su to user1 with the user1 password expired.
  64. spawn /bin/su -l root -c passwd -e su_usr2
  65. Password:
  66. passwd: password expiry information changed.
  67. spawn /bin/su -l su_usr2 -c whoami
  68. Password:
  69. You are required to change your password immediately (administrator enforced)
  70. su: Authentication token manipulation error
  71.  
  72. i_am_correct=0
  73. exit_code=1
  74. pid=2954
  75. /bin/su -l su_usr2 with expired correct password ( FAILED )
  76. spawn /bin/su -l root -c passwd su_usr2
  77. Password:
  78. New password: <<<execution_status>>>
  79. initiation_status="ok"
  80. duration=19 termination_type=exited termination_id=1 corefile=no
  81. cutime=30 cstime=88
  82. <<<test_end>>>
  83. INFO: ltp-pan reported some tests FAIL
  84. LTP Version: 20170516
  85.  
  86. ###############################################################
  87.  
  88. Done executing testcases.
  89. LTP Version: 20170516
  90. ###############################################################
  91.  
  92. root@hikey:/opt/ltp#
Add Comment
Please, Sign In to add comment