Skip to content

Commit

Permalink
Run tests using the binary distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Mar 2, 2019
1 parent b20d85a commit c47eb22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,8 @@ jobs:
script: cd test; poetry run ./run_tests.py --interface=library
- name: With command line interface
script: cd test; poetry run ./run_tests.py --interface=cli
- name: With binary distribution command line interface
python: '3.6.8'
script:
- contrib/build_bin.sh
- cd test; poetry run ./run_tests.py --interface=cli
4 changes: 4 additions & 0 deletions test/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def do_command(self, args):
proc = subprocess.Popen(['hwi ' + ' '.join(args)], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=True)
result = proc.communicate()
return json.loads(result[0].decode())
elif self.interface == 'bindist':
proc = subprocess.Popen(['dist/hwi ' + ' '.join(args)], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=True)
result = proc.communicate()
return json.loads(result[0].decode())
else:
return process_commands(args)

Expand Down

0 comments on commit c47eb22

Please sign in to comment.