mirror of
https://github.com/wahyd4/gitolite.git
synced 2026-08-21 02:45:55 +10:00
sometimes I want to quickly test a few lines of change within the context of
a currently-running/just-ran test, *without* doing the rollback etc.
Here's how you do that now:
- in your source tree, make the change and then run:
cp -a src hooks contrib/adc /some/tmp/place
- go to the tester userid and re-run your tests like so:
GQT=/some/tmp/place ./test-driver.sh
it'll rollback as normal then overwrite src and hooks from $GQT
Also, there's now a "dbg" sub that can be used for quick printf-style
debugging.
12 lines
233 B
Bash
Executable File
12 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export TESTDIR=$PWD
|
|
|
|
cd
|
|
rm -rf gitolite-admin td
|
|
tar xf rollback.tar
|
|
mkdir td
|
|
|
|
scp -q $TESTDIR/rollback.server gitolite-test@localhost:rollback || { echo scp failed; exit 1; }
|
|
ssh gitolite-test@localhost ./rollback $GQT
|