Fix wizard rcc invocation for paths with spaces inside.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Sep 2010 16:36:54 +0000 (16:36 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 13 Sep 2010 16:36:54 +0000 (16:36 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4235 38d2e660-2303-0410-9eaa-f027e97ec537

test/run_tests.sh
wizard/bertos.py

index 2c6a7ae84af1a2a188689126b335a7a67ad54ff6..ea88cb05e12ea199d98ebe94b49015ed275f8cd7 100755 (executable)
@@ -13,7 +13,7 @@
 #  2 - build warnings
 #  3 - execution output
 #  4 - build commands
-VERBOSE=${VERBOSE:-1}
+VERBOSE=${VERBOSE:-3}
 
 CC=gcc
 #FIXME: -Ibertos/emul should not be needed
@@ -24,7 +24,7 @@ CFLAGS="-W -Wall -Wextra -Wundef -Wpointer-arith -Wcast-qual -Wcast-align -Wwrit
 CXX=g++
 CXXFLAGS="$CFLAGS"
 
-TESTS=${TESTS:-`find . \
+TESTS?=${TESTS:-`find . \
        \( -name .svn -prune -o -name .git -prune -o -name .hg  -prune \) \
        -o -name "*_test.c" -print` }
 
index 93f451c536e5b797009f8a5fb099476afb7f7e6f..3aa845f3be666061b5e3219ccfe7226bc382bd08 100755 (executable)
@@ -121,7 +121,7 @@ def main():
     datadir = DATA_DIR
     qrc, rcc = os.path.join(datadir, 'bertos.qrc'), os.path.join(datadir, 'bertos.rcc')
     if not (hasattr(sys, "frozen") and sys.frozen) and newer(qrc, rcc):
-        os.system("rcc -binary %s -o %s" %(qrc, rcc))
+        os.system("rcc -binary \"%s\" -o \"%s\"" %(qrc, rcc))
     QResource.registerResource(rcc)
     if len(sys.argv) == 3 and sys.argv[1] == "--edit":
         editProject(os.path.abspath(sys.argv[2]))