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 from unittest import TestCase
import subprocess import subprocess
import os
class JIOTest(TestCase): class JIOTest(TestCase):
...@@ -14,10 +13,11 @@ class JIOTest(TestCase): ...@@ -14,10 +13,11 @@ class JIOTest(TestCase):
""" """
Launch jio test without requirejs 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" % ( command = ["%s %s %s; exit 0" % (
os.path.expanduser('~/bin/phantomjs'), '%s/bin/phantomjs' % root_directory,
os.path.expanduser('~/parts/jio/test/run-qunit.js'), '%s/parts/jio/test/run-qunit.js' % root_directory,
os.path.expanduser('~/parts/jio/test/jiotests_withoutrequirejs.html'))] '%s/parts/jio/test/jiotests_withoutrequirejs.html' % root_directory)]
print command print command
result = subprocess.check_output( result = subprocess.check_output(
command, 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