<table><tr><td style="">jriddell marked an inline comment as done.<br />jriddell added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10716">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Is it necessary to write the mock su/sudo in python? That introduces a big and mostly unnecessary dependency on python.</p></blockquote>

<p>Nope but that's what was easiest for me and I'm out of energy for this</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>By adding a new constructor to SuCommand which allows to specify the full path to su/sudo, testing would be much easier. It might be usable outside of the tests as well.</p></blockquote>

<p>I looked at that but I'd be scared of introducing binary incompatiblity.  This approach covers the current needs.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>The testcases would be simpler if it used QTESTDATA and rows for the su/sudo and correct/incorrect password cases</p></blockquote>

<p>Something else I need to learn about.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R299 KDESu</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10716">https://phabricator.kde.org/D10716</a></div></div><br /><div><strong>To: </strong>jriddell, sitter, fvogt<br /><strong>Cc: </strong>fvogt, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>