Commit 66407e60 authored by Sebastien Robin's avatar Sebastien Robin

find path in another way to make it working in testnode (quite ugly for now)

parent 770c6c0b
from unittest import TestCase
import subprocess
import os
class JIOTest(TestCase):
......@@ -14,10 +13,11 @@ class JIOTest(TestCase):
"""
Launch jio test without requirejs
"""
root_directory = __file__[0:-len("parts/jio/test_launcher_for_jio/tests/testJIO.py")]
command = ["%s %s %s; exit 0" % (
os.path.expanduser('~/bin/phantomjs'),
os.path.expanduser('~/parts/jio/test/run-qunit.js'),
os.path.expanduser('~/parts/jio/test/jiotests_withoutrequirejs.html'))]
'%s/bin/phantomjs' % root_directory,
'%s/parts/jio/test/run-qunit.js' % root_directory,
'%s/parts/jio/test/jiotests_withoutrequirejs.html' % root_directory)]
print command
result = subprocess.check_output(
command,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment