commit 2b01eb6c2d76b941e4ba4c04450a6e18305c86c0 from: Stefan Sperling date: Sat May 11 22:49:40 2019 UTC verify expected output in test_add_multiple and actually run this test commit - 2af4a0419220dba40c25f0f6af548638b5ae3a1b commit + 2b01eb6c2d76b941e4ba4c04450a6e18305c86c0 blob - eba70736ae728ec6afd23f5172342c765b0bc59c blob + ddbaf4a87665ff09850e0cb12679e18bb8b07138 --- regress/cmdline/add.sh +++ regress/cmdline/add.sh @@ -76,8 +76,7 @@ function test_add_multiple { echo "new file" > $testroot/wt/foo echo "new file" > $testroot/wt/bar echo "new file" > $testroot/wt/baz - (cd $testroot/wt && got add foo bar baz) - + (cd $testroot/wt && got add foo bar baz > $testroot/stdout) ret="$?" if [ "$ret" != "0" ]; then echo "got add failed unexpectedly" >&2 @@ -85,8 +84,18 @@ function test_add_multiple { return 1 fi + echo "A bar" > $testroot/stdout.expected + echo "A baz" >> $testroot/stdout.expected + echo "A foo" >> $testroot/stdout.expected + + cmp $testroot/stdout.expected $testroot/stdout + ret="$?" + if [ "$ret" != "0" ]; then + diff -u $testroot/stdout.expected $testroot/stdout + fi test_done "$testroot" "$ret" } run_test test_add_basic run_test test_double_add +run_test test_add_multiple