A foo/bar
EOF
test_expect_success 'Status with an added file' '
- stg add foo &&
+ git add foo &&
stg status > output.txt &&
diff -u expected.txt output.txt
'
test_expect_success 'Add another file' '
echo lajbans > fie &&
- stg add fie &&
+ git add fie &&
stg refresh
'
A fie
C foo/bar
EOF
-test_expect_failure 'Status after conflicting push' '
+test_expect_success 'Status after conflicting push' '
! stg push &&
stg status > output.txt &&
diff -u expected.txt output.txt
cat > expected.txt <<EOF
C foo/bar
EOF
-test_expect_failure 'Status of file' '
+test_expect_success 'Status of file' '
stg status foo/bar > output.txt &&
diff -u expected.txt output.txt
'
cat > expected.txt <<EOF
C foo/bar
EOF
-test_expect_failure 'Status of dir' '
+test_expect_success 'Status of dir' '
stg status foo > output.txt &&
diff -u expected.txt output.txt
'
A fie
D foo/bar
EOF
-test_expect_failure 'Status after deleting a file' '
+test_expect_success 'Status after deleting a file' '
rm foo/bar &&
stg status > output.txt &&
diff -u expected.txt output.txt
cat > expected.txt <<EOF
D foo/bar
EOF
-test_expect_failure 'Status of disappeared newborn' '
+test_expect_success 'Status of disappeared newborn' '
stg refresh &&
touch foo/bar &&
- stg add foo/bar &&
+ git add foo/bar &&
rm foo/bar &&
stg status > output.txt &&
diff -u expected.txt output.txt