YARN-1873. Fixed TestDistributedShell failure when the test cases are out of order. Contributed by Mit Desai. svn merge --ignore-ancestry -c 1582060 ../../trunk/