Files
dvc/functest/test-repro-code.sh
T
Ruslan Kuprieiev e7bf8054da functest: fix existing scripts
A few minor adjustments to make what we currently have work,
while I prepare new func tests.

Fixes #175

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-08-20 04:53:13 +03:00

23 lines
521 B
Bash
Executable File

#!/bin/bash
set -e
source common.sh
function run_test() {
mkdir data/tsv
dvc_info 'convert Budget.xml to tsv'
dvc run --code code/xmltotsv.py python code/xmltotsv.py --extract row/@Id,row/@UserId,row/@Name,row/@Class,row/@TagBased,row/@Date data/xml/Badges.xml data/tsv/Badges.tsv
dvc_info 'modify code'
echo " " >> code/xmltotsv.py
git commit -am 'Change code'
dvc_info 'reproduce tsv convertion code'
dvc repro data/tsv/Badges.tsv
}
create_repo
(cd $TEST_REPO; run_test)