Re: [PATCHv3 3/6] Test file for git-remote-mediawiki clone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Simon Cathebras <simon.cathebras@xxxxxxxxxxxxxxx> a écrit :


+test_expect_success 'Git clone creates the git log expected with one file' '
+	wiki_reset &&
+	cd '"$TRASH_DIR"' &&
+	rm -rf mw_dir &&
+ wiki_editpage foo "this is not important" false -c cat -s "this must be the same" &&
+	git clone mediawiki::http://localhost/wiki mw_dir &&
+	cd mw_dir &&
+	git log --format=%s HEAD^..HEAD > log.tmp &&
+	echo "this must be the same" > msg.tmp &&
+	diff -b log.tmp msg.tmp &&
+	cd .. &&
+	rm -rf mw_dir
+'
+

It's best not to chdir around outside a subshell (same comment for all the
other tests)

BTW, please be aware of the whitespaces (the first 5 parts of your patch are
full of it - couldn't apply the last one because of the special characters, maybe
something that i haven't configure, i don't know).


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]