Files
dvc/functest/test-repro-code.sh
T
Ruslan Kuprieiev 0f45afb3a4 functest: rework test system and introduce new tests
Reworked existing tests and test-system, added a few new
tests(init, reworked repro, import).

Fixes #175

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2017-08-20 09:32:32 +03:00

23 lines
477 B
Bash
Executable File

#!/bin/bash
set -e
source common.sh
dvc_create_repo
mkdir data/tsv
dvc_info 'Convert Budget.xml to tsv'
pip2 install xmltodict
dvc run --code code/xmltotsv.py python2 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
dvc_pass