File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ deviceLog.txt
10
10
pylint *
11
11
QA *
12
12
Report *
13
- setup *
14
13
TestApp *
15
14
TNS_App *
16
15
template-hello *
Original file line number Diff line number Diff line change
1
+ """
2
+ Test that check CLI package after installation.
3
+ """
4
+ import unittest
5
+
6
+ from core .base_class .BaseClass import BaseClass
7
+ from core .osutils .command import run
8
+ from core .osutils .os_type import OSType
9
+ from core .settings .settings import CURRENT_OS
10
+
11
+
12
+ class SetupTests (BaseClass ):
13
+ @classmethod
14
+ def setUpClass (cls ):
15
+ BaseClass .setUpClass (cls .__name__ )
16
+
17
+ @classmethod
18
+ def tearDownClass (cls ):
19
+ BaseClass .tearDownClass ()
20
+
21
+ @unittest .skipIf (CURRENT_OS != OSType .OSX , 'Skip on Linux and Windows' )
22
+ def test_001_mac_script_has_execution_permissions (self ):
23
+ output = run ('ls -la node_modules/nativescript/setup/mac-startup-shell-script.sh' )
24
+ assert "-rwxr-xr-x" in output , "macOS script has not execution permissions."
You can’t perform that action at this time.
0 commit comments